90 patchName, guards = output.split(":", 1) |
90 patchName, guards = output.split(":", 1) |
91 self.patchNameLabel.setText(patchName) |
91 self.patchNameLabel.setText(patchName) |
92 guardsList = guards.strip().split() |
92 guardsList = guards.strip().split() |
93 for guard in guardsList: |
93 for guard in guardsList: |
94 if guard.startswith("+"): |
94 if guard.startswith("+"): |
95 icon = UI.PixmapCache.getIcon("plus.png") |
95 icon = UI.PixmapCache.getIcon("plus") |
96 guard = guard[1:] |
96 guard = guard[1:] |
97 elif guard.startswith("-"): |
97 elif guard.startswith("-"): |
98 icon = UI.PixmapCache.getIcon("minus.png") |
98 icon = UI.PixmapCache.getIcon("minus") |
99 guard = guard[1:] |
99 guard = guard[1:] |
100 else: |
100 else: |
101 icon = None |
101 icon = None |
102 guard = self.tr("Unguarded") |
102 guard = self.tr("Unguarded") |
103 itm = QListWidgetItem(guard, self.guardsList) |
103 itm = QListWidgetItem(guard, self.guardsList) |