265 def __enableFindButton(self): |
264 def __enableFindButton(self): |
266 """ |
265 """ |
267 Private slot called to enable the find button. |
266 Private slot called to enable the find button. |
268 """ |
267 """ |
269 if self.findtextCombo.currentText() == "" or \ |
268 if self.findtextCombo.currentText() == "" or \ |
270 (self.__replaceMode and |
|
271 self.replacetextCombo.currentText() == "") or \ |
|
272 (self.dirButton.isChecked() and |
269 (self.dirButton.isChecked() and |
273 (self.dirPicker.currentText() == "" or |
270 (self.dirPicker.currentText() == "" or |
274 not os.path.exists(os.path.abspath( |
271 not os.path.exists(os.path.abspath( |
275 self.dirPicker.currentText())))) or \ |
272 self.dirPicker.currentText())))) or \ |
276 (self.filterCheckBox.isChecked() and self.filterEdit.text() == ""): |
273 (self.filterCheckBox.isChecked() and self.filterEdit.text() == ""): |