Extended the project object a little bit. 6_0_x

Tue, 30 Dec 2014 15:56:06 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 30 Dec 2014 15:56:06 +0100
branch
6_0_x
changeset 4010
abfb90bf1a80
parent 4002
c30100d0729f
child 4012
0292597d4cc1

Extended the project object a little bit.
(grafted from 098c303a6857a45482c8a3833a603041a6ff0d27)

Project/Project.py file | annotate | diff | comparison | revisions
Project/PropertiesDialog.py file | annotate | diff | comparison | revisions
--- a/Project/Project.py	Tue Dec 30 11:06:45 2014 +0100
+++ b/Project/Project.py	Tue Dec 30 15:56:06 2014 +0100
@@ -268,6 +268,7 @@
             "Python3": ["Qt4", "Qt4C", "PyQt5", "PyQt5C", "E4Plugin",
                         "E6Plugin", "Console", "Other"],
             "Ruby": ["Qt4", "Qt4C", "Console", "Other"],
+            "JavaScript": ["Other"],
         }
         
         pyside2, pyside3 = Utilities.checkPyside()
--- a/Project/PropertiesDialog.py	Tue Dec 30 11:06:45 2014 +0100
+++ b/Project/PropertiesDialog.py	Tue Dec 30 15:56:06 2014 +0100
@@ -160,8 +160,10 @@
             self.projectTypeComboBox.addItem(
                 projectTypes[projectType], projectType)
         
-        self.projectTypeComboBox.setCurrentIndex(
-            self.projectTypeComboBox.findData(curProjectType))
+        index = self.projectTypeComboBox.findData(curProjectType)
+        if index == -1:
+            index = 0
+        self.projectTypeComboBox.setCurrentIndex(index)
     
     @pyqtSlot(str)
     def on_dirEdit_textChanged(self, txt):

eric ide

mercurial