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