325 def __toolEntryChanged(self): |
325 def __toolEntryChanged(self): |
326 """ |
326 """ |
327 Private slot to perform actions when a tool entry was changed. |
327 Private slot to perform actions when a tool entry was changed. |
328 """ |
328 """ |
329 row = self.toolsList.currentRow() |
329 row = self.toolsList.currentRow() |
330 if row >= 0 and \ |
330 if ( |
331 row < len(self.toollist) and \ |
331 row >= 0 and |
332 self.toollist[row]['menutext'] != '--': |
332 row < len(self.toollist) and |
|
333 self.toollist[row]['menutext'] != '--' |
|
334 ): |
333 self.changeButton.setEnabled(True) |
335 self.changeButton.setEnabled(True) |
334 |
336 |
335 def on_menuEdit_textChanged(self, text): |
337 def on_menuEdit_textChanged(self, text): |
336 """ |
338 """ |
337 Private slot called, when the menu text was changed. |
339 Private slot called, when the menu text was changed. |