Plugins/DocumentationPlugins/Ericapi/EricapiConfigDialog.py

changeset 1434
69c3d77a8dd6
parent 1131
7781e396c903
child 1437
6d7bc811c758
equal deleted inserted replaced
1433:cb6507f68b16 1434:69c3d77a8dd6
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.

eric ide

mercurial