Ensure currentImageBack isn't null

This commit is contained in:
Ilya Fedin
2025-03-28 15:47:24 +00:00
committed by John Preston
parent 3c2f8b65ce
commit 7d0beafce0
@@ -161,6 +161,8 @@ QIcon IconGraphic::trayIcon() {
if (currentImageBack.isNull()
|| _new.iconThemeName != _current.iconThemeName
|| _new.systemIcon.name() != _current.systemIcon.name()) {
currentImageBack = {};
if (!_new.systemIcon.isNull()) {
// We can't use QIcon::actualSize here
// since it works incorrectly with svg icon themes
@@ -187,7 +189,9 @@ QIcon IconGraphic::trayIcon() {
.toImage();
}
}
} else {
}
if (currentImageBack.isNull()) {
currentImageBack = Window::Logo();
}