130 @pyqtSlot() |
130 @pyqtSlot() |
131 def on_idAddButton_clicked(self): |
131 def on_idAddButton_clicked(self): |
132 """ |
132 """ |
133 Private slot to add an 'Include Directory'. |
133 Private slot to add an 'Include Directory'. |
134 """ |
134 """ |
135 if self.__project: |
135 defaultDirectory = (self.__project.getProjectPath() if self.__project |
136 defaultDirectory = self.__project.getProjectPath() |
136 else "") |
137 else: |
|
138 defaultDirectory = "" |
|
139 path, ok = E5PathPickerDialog.getPath( |
137 path, ok = E5PathPickerDialog.getPath( |
140 self, |
138 self, |
141 self.tr("Include Directory"), |
139 self.tr("Include Directory"), |
142 self.tr("Select Include Directory"), |
140 self.tr("Select Include Directory"), |
143 E5PathPickerModes.DirectoryShowFilesMode, |
141 E5PathPickerModes.DirectoryShowFilesMode, |