Browse Source

don't set icon overlay when it would fail anyway. Just in case, fringe corner case

master
Nils 4 years ago
parent
commit
0040142c69
  1. 4
      qtgui/quickopensessioncontroller.py

4
qtgui/quickopensessioncontroller.py

@ -137,8 +137,8 @@ class StarterClientItem(QtWidgets.QListWidgetItem):
p.end()
ico = QtGui.QIcon(pixmap)
else:
assert self.argodejoExec in self.parentController.mainWindow.programIcons, self.argodejoExec #because we created missing icons ourselves
ico = self.parentController.mainWindow.programIcons[self.argodejoExec]
if self.argodejoExec in self.parentController.mainWindow.programIcons: #there was a strange bug once where this happened exactly one, and then everything was fine, including this icon. Some DB backwards compatibility.
ico = self.parentController.mainWindow.programIcons[self.argodejoExec]
self.setIcon(ico)

Loading…
Cancel
Save