Project/SpellingPropertiesDialog.py

changeset 5098
bc74f74a95f5
parent 4631
5c1a96925da4
child 5100
2c193da9b94f
--- a/Project/SpellingPropertiesDialog.py	Mon Aug 15 17:22:13 2016 +0200
+++ b/Project/SpellingPropertiesDialog.py	Wed Aug 17 12:32:58 2016 +0200
@@ -66,10 +66,10 @@
         if index == -1:
             index = 0
         self.spellingComboBox.setCurrentIndex(index)
-        if self.project.pdata["SPELLWORDS"][0]:
-            self.pwlPicker.setText(self.project.pdata["SPELLWORDS"][0])
-        if self.project.pdata["SPELLEXCLUDES"][0]:
-            self.pelPicker.setText(self.project.pdata["SPELLEXCLUDES"][0])
+        if self.project.pdata["SPELLWORDS"]:
+            self.pwlPicker.setText(self.project.pdata["SPELLWORDS"])
+        if self.project.pdata["SPELLEXCLUDES"]:
+            self.pelPicker.setText(self.project.pdata["SPELLEXCLUDES"])
     
     def storeData(self):
         """
@@ -82,6 +82,6 @@
             self.project.pdata["SPELLLANGUAGE"] = \
                 [self.spellingComboBox.currentText()]
         self.project.pdata["SPELLWORDS"] = \
-            [self.project.getRelativePath(self.pwlPicker.text())]
+            self.project.getRelativePath(self.pwlPicker.text())
         self.project.pdata["SPELLEXCLUDES"] = \
-            [self.project.getRelativePath(self.pelPicker.text())]
+            self.project.getRelativePath(self.pelPicker.text())

eric ide

mercurial