Tue, 30 Dec 2014 15:56:06 +0100
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):