303 Private slot to add the directory displayed to the listview. |
303 Private slot to add the directory displayed to the listview. |
304 |
304 |
305 The directory in the ignore directories |
305 The directory in the ignore directories |
306 line edit is moved to the listbox above and the edit is cleared. |
306 line edit is moved to the listbox above and the edit is cleared. |
307 """ |
307 """ |
308 self.ignoreDirsList.addItem(os.path.basename(self.ignoreDirEdit.text())) |
308 basename = os.path.basename(self.ignoreDirEdit.text()) |
309 self.ignoreDirEdit.clear() |
309 if basename: |
|
310 self.ignoreDirsList.addItem() |
|
311 self.ignoreDirEdit.clear() |
310 |
312 |
311 @pyqtSlot() |
313 @pyqtSlot() |
312 def on_deleteButton_clicked(self): |
314 def on_deleteButton_clicked(self): |
313 """ |
315 """ |
314 Private slot to delete the currently selected directory of the listbox. |
316 Private slot to delete the currently selected directory of the listbox. |