108 if not fileExt and Utilities.isWindowsPlatform(): |
108 if not fileExt and Utilities.isWindowsPlatform(): |
109 self.fileList.clear() |
109 self.fileList.clear() |
110 return |
110 return |
111 |
111 |
112 patternFormat = fileExt and "{0}{1}{2}" or "{0}*{1}{2}" |
112 patternFormat = fileExt and "{0}{1}{2}" or "{0}*{1}{2}" |
113 fileNamePattern = patternFormat.format(fileName, os.extsep, |
113 fileNamePattern = patternFormat.format( |
114 fileExt and fileExt or '*') |
114 fileName, os.extsep, fileExt and fileExt or '*') |
115 |
115 |
116 searchPaths = [] |
116 searchPaths = [] |
117 if self.searchDirCheckBox.isChecked() and \ |
117 if self.searchDirCheckBox.isChecked() and \ |
118 self.searchDirEdit.text() != "": |
118 self.searchDirEdit.text() != "": |
119 searchPaths.append(self.searchDirEdit.text()) |
119 searchPaths.append(self.searchDirEdit.text()) |
194 |
194 |
195 @pyqtSlot() |
195 @pyqtSlot() |
196 def on_searchDirButton_clicked(self): |
196 def on_searchDirButton_clicked(self): |
197 """ |
197 """ |
198 Private slot to handle the clicked signal of the search directory |
198 Private slot to handle the clicked signal of the search directory |
199 selection |
199 selection button. |
200 button. |
|
201 """ |
200 """ |
202 searchDir = E5FileDialog.getExistingDirectory( |
201 searchDir = E5FileDialog.getExistingDirectory( |
203 None, |
202 None, |
204 self.trUtf8("Select search directory"), |
203 self.trUtf8("Select search directory"), |
205 self.searchDirEdit.text(), |
204 self.searchDirEdit.text(), |