Plugins/DocumentationPlugins/Ericapi/EricapiConfigDialog.py

branch
5_1_x
changeset 1435
09ec4c8c75d8
parent 882
34b86be88bf0
child 1436
f170933c1431
equal deleted inserted replaced
1429:fa58f95c8976 1435:09ec4c8c75d8
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.

eric ide

mercurial