218 Private slot to add the directory displayed to the listview. |
218 Private slot to add the directory displayed to the listview. |
219 |
219 |
220 The directory in the ignore directories |
220 The directory in the ignore directories |
221 line edit is moved to the listbox above and the edit is cleared. |
221 line edit is moved to the listbox above and the edit is cleared. |
222 """ |
222 """ |
223 self.ignoreDirsList.addItem(os.path.basename(self.ignoreDirEdit.text())) |
223 basename = os.path.basename(self.ignoreDirEdit.text()) |
224 self.ignoreDirEdit.clear() |
224 if basename: |
|
225 self.ignoreDirsList.addItem() |
|
226 self.ignoreDirEdit.clear() |
225 |
227 |
226 @pyqtSlot() |
228 @pyqtSlot() |
227 def on_deleteButton_clicked(self): |
229 def on_deleteButton_clicked(self): |
228 """ |
230 """ |
229 Private slot to delete the currently selected directory of the listbox. |
231 Private slot to delete the currently selected directory of the listbox. |