527 self.viewlist.item(index).setIcon( |
527 self.viewlist.item(index).setIcon( |
528 UI.PixmapCache.getIcon("fileModified.png")) |
528 UI.PixmapCache.getIcon("fileModified.png")) |
529 elif editor.hasSyntaxErrors(): |
529 elif editor.hasSyntaxErrors(): |
530 self.viewlist.item(index).setIcon( |
530 self.viewlist.item(index).setIcon( |
531 UI.PixmapCache.getIcon("syntaxError.png")) |
531 UI.PixmapCache.getIcon("syntaxError.png")) |
532 elif editor.hasFlakesWarnings(): |
532 elif editor.hasWarnings(): |
533 self.viewlist.item(index).setIcon( |
533 self.viewlist.item(index).setIcon( |
534 UI.PixmapCache.getIcon("warning.png")) |
534 UI.PixmapCache.getIcon("warning.png")) |
535 else: |
535 else: |
536 self.viewlist.item(index).setIcon( |
536 self.viewlist.item(index).setIcon( |
537 UI.PixmapCache.getIcon("empty.png")) |
537 UI.PixmapCache.getIcon("empty.png")) |
547 currentRow = self.viewlist.currentRow() |
547 currentRow = self.viewlist.currentRow() |
548 index = self.editors.index(editor) |
548 index = self.editors.index(editor) |
549 if editor.hasSyntaxErrors(): |
549 if editor.hasSyntaxErrors(): |
550 self.viewlist.item(index).setIcon( |
550 self.viewlist.item(index).setIcon( |
551 UI.PixmapCache.getIcon("syntaxError.png")) |
551 UI.PixmapCache.getIcon("syntaxError.png")) |
552 elif editor.hasFlakesWarnings(): |
552 elif editor.hasWarnings(): |
553 self.viewlist.item(index).setIcon( |
553 self.viewlist.item(index).setIcon( |
554 UI.PixmapCache.getIcon("warning.png")) |
554 UI.PixmapCache.getIcon("warning.png")) |
555 elif editor.isModified(): |
555 elif editor.isModified(): |
556 self.viewlist.item(index).setIcon( |
556 self.viewlist.item(index).setIcon( |
557 UI.PixmapCache.getIcon("fileModified.png")) |
557 UI.PixmapCache.getIcon("fileModified.png")) |