Project/PropertiesDialog.py

changeset 5099
175b36822cc9
parent 4631
5c1a96925da4
child 5100
2c193da9b94f
diff -r bc74f74a95f5 -r 175b36822cc9 Project/PropertiesDialog.py
--- a/Project/PropertiesDialog.py	Wed Aug 17 12:32:58 2016 +0200
+++ b/Project/PropertiesDialog.py	Wed Aug 17 17:52:52 2016 +0200
@@ -87,12 +87,12 @@
             self.projectTypeComboBox.setCurrentIndex(curIndex)
             self.dirPicker.setText(self.project.ppath)
             try:
-                self.versionEdit.setText(self.project.pdata["VERSION"][0])
+                self.versionEdit.setText(self.project.pdata["VERSION"])
             except IndexError:
                 pass
             try:
                 self.mainscriptPicker.setText(
-                    self.project.pdata["MAINSCRIPT"][0])
+                    self.project.pdata["MAINSCRIPT"])
             except IndexError:
                 pass
             try:
@@ -105,11 +105,11 @@
                 pass
             try:
                 self.descriptionEdit.setPlainText(
-                    self.project.pdata["DESCRIPTION"][0])
+                    self.project.pdata["DESCRIPTION"])
             except LookupError:
                 pass
             try:
-                self.eolComboBox.setCurrentIndex(self.project.pdata["EOL"][0])
+                self.eolComboBox.setCurrentIndex(self.project.pdata["EOL"])
             except IndexError:
                 pass
             self.vcsLabel.show()
@@ -118,7 +118,7 @@
                     .getPluginDisplayStrings("version_control")
                 try:
                     vcsSystemDisplay = \
-                        vcsSystemsDict[self.project.pdata["VCS"][0]]
+                        vcsSystemsDict[self.project.pdata["VCS"]]
                 except KeyError:
                     vcsSystemDisplay = "None"
                 self.vcsLabel.setText(
@@ -277,19 +277,18 @@
             self.project.pfile = os.path.join(self.project.ppath, fn)
         else:
             self.project.pfile = ""
-        self.project.pdata["VERSION"] = [self.versionEdit.text()]
+        self.project.pdata["VERSION"] = self.versionEdit.text()
         fn = self.mainscriptPicker.text()
         if fn:
             fn = self.project.getRelativePath(fn)
-            self.project.pdata["MAINSCRIPT"] = [fn]
+            self.project.pdata["MAINSCRIPT"] = fn
             self.project.translationsRoot = os.path.splitext(fn)[0]
         else:
-            self.project.pdata["MAINSCRIPT"] = []
+            self.project.pdata["MAINSCRIPT"] = ""
             self.project.translationsRoot = ""
         self.project.pdata["AUTHOR"] = [self.authorEdit.text()]
         self.project.pdata["EMAIL"] = [self.emailEdit.text()]
-        self.project.pdata["DESCRIPTION"] = \
-            [self.descriptionEdit.toPlainText()]
+        self.project.pdata["DESCRIPTION"] = self.descriptionEdit.toPlainText()
         self.project.pdata["PROGLANGUAGE"] = \
             [self.languageComboBox.currentText()]
         self.project.pdata["MIXEDLANGUAGE"] = \
@@ -297,7 +296,7 @@
         projectType = self.getProjectType()
         if projectType is not None:
             self.project.pdata["PROJECTTYPE"] = [projectType]
-        self.project.pdata["EOL"] = [self.eolComboBox.currentIndex()]
+        self.project.pdata["EOL"] = self.eolComboBox.currentIndex()
         
         self.project.vcsRequested = self.vcsCheckBox.isChecked()
         

eric ide

mercurial