From 0040142c69291f112fe7c2795d3686862656d754 Mon Sep 17 00:00:00 2001 From: Nils <> Date: Tue, 30 Jun 2020 10:53:41 +0200 Subject: [PATCH] don't set icon overlay when it would fail anyway. Just in case, fringe corner case --- qtgui/quickopensessioncontroller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qtgui/quickopensessioncontroller.py b/qtgui/quickopensessioncontroller.py index 83b14fb..f93cd2f 100644 --- a/qtgui/quickopensessioncontroller.py +++ b/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)