151 |
151 |
152 def on_filePatternEdit_textChanged(self, txt): |
152 def on_filePatternEdit_textChanged(self, txt): |
153 """ |
153 """ |
154 Private slot to handle the textChanged signal of the pattern lineedit. |
154 Private slot to handle the textChanged signal of the pattern lineedit. |
155 |
155 |
156 @param txt text of the line edit (string) |
156 @param txt text of the line edit |
|
157 @type str |
157 """ |
158 """ |
158 if not txt: |
159 if not txt: |
159 self.deleteAssociationButton.setEnabled(False) |
160 self.deleteAssociationButton.setEnabled(False) |
160 else: |
161 else: |
161 if len(self.filetypeAssociationList.selectedItems()) == 0: |
162 if len(self.filetypeAssociationList.selectedItems()) == 0: |