Plugins/DocumentationPlugins/Ericdoc/EricdocConfigDialog.py

changeset 1434
69c3d77a8dd6
parent 1131
7781e396c903
child 1437
6d7bc811c758
--- a/Plugins/DocumentationPlugins/Ericdoc/EricdocConfigDialog.py	Tue Nov 08 18:37:34 2011 +0100
+++ b/Plugins/DocumentationPlugins/Ericdoc/EricdocConfigDialog.py	Tue Nov 08 18:48:41 2011 +0100
@@ -306,8 +306,10 @@
         The directory in the ignore directories
         line edit is moved to the listbox above and the edit is cleared.
         """
-        self.ignoreDirsList.addItem(os.path.basename(self.ignoreDirEdit.text()))
-        self.ignoreDirEdit.clear()
+        basename = os.path.basename(self.ignoreDirEdit.text())
+        if basename:
+            self.ignoreDirsList.addItem()
+            self.ignoreDirEdit.clear()
 
     @pyqtSlot()
     def on_deleteButton_clicked(self):

eric ide

mercurial