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