551 keys.append("syntaxError22.png") |
551 keys.append("syntaxError22.png") |
552 elif editor.hasWarnings(): |
552 elif editor.hasWarnings(): |
553 keys.append("warning22.png") |
553 keys.append("warning22.png") |
554 if not keys: |
554 if not keys: |
555 keys.append("empty.png") |
555 keys.append("empty.png") |
556 self.viewlist.item(index).setIcon( |
556 item = self.viewlist.item(index) |
557 UI.PixmapCache.getCombinedIcon(keys)) |
557 if item: |
|
558 item.setIcon(UI.PixmapCache.getCombinedIcon(keys)) |
558 self.viewlist.setCurrentRow(currentRow) |
559 self.viewlist.setCurrentRow(currentRow) |
559 self._checkActions(editor) |
560 self._checkActions(editor) |
560 |
561 |
561 def _syntaxErrorToggled(self, editor): |
562 def _syntaxErrorToggled(self, editor): |
562 """ |
563 """ |