From ad5235244d638bf709981e735bf52e0a8fc1bff4 Mon Sep 17 00:00:00 2001 From: Nils <> Date: Tue, 14 Jul 2020 18:49:28 +0200 Subject: [PATCH] Do not assume icon DB is always right --- qtgui/mainwindow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qtgui/mainwindow.py b/qtgui/mainwindow.py index 32761cf..3f5f8d9 100644 --- a/qtgui/mainwindow.py +++ b/qtgui/mainwindow.py @@ -263,8 +263,8 @@ class MainWindow(QtWidgets.QMainWindow): if "argodejoIconPath" in entry and entry["argodejoIconPath"]: #not null icon = QtGui.QIcon(entry["argodejoIconPath"]) - assert not icon.isNull() - else: + + if icon.isNull(): #the DB cache could be wrong. Deinstalled a program and not updated the DB. if "icon" in entry: icon = QtGui.QIcon.fromTheme(entry["icon"]) else: