158 projectTypes = self.project.getProjectTypes(language) |
158 projectTypes = self.project.getProjectTypes(language) |
159 for projectType in sorted(projectTypes.keys()): |
159 for projectType in sorted(projectTypes.keys()): |
160 self.projectTypeComboBox.addItem( |
160 self.projectTypeComboBox.addItem( |
161 projectTypes[projectType], projectType) |
161 projectTypes[projectType], projectType) |
162 |
162 |
163 self.projectTypeComboBox.setCurrentIndex( |
163 index = self.projectTypeComboBox.findData(curProjectType) |
164 self.projectTypeComboBox.findData(curProjectType)) |
164 if index == -1: |
|
165 index = 0 |
|
166 self.projectTypeComboBox.setCurrentIndex(index) |
165 |
167 |
166 @pyqtSlot(str) |
168 @pyqtSlot(str) |
167 def on_dirEdit_textChanged(self, txt): |
169 def on_dirEdit_textChanged(self, txt): |
168 """ |
170 """ |
169 Private slot to handle a change of the project directory. |
171 Private slot to handle a change of the project directory. |