Browse Source

Do not assume icon DB is always right

master
Nils 3 years ago
parent
commit
ad5235244d
  1. 4
      qtgui/mainwindow.py

4
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:

Loading…
Cancel
Save