mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Check icon for nullity in Widget
This commit is contained in:
parent
88ba0cb6b9
commit
72bb66334e
|
@ -311,6 +311,7 @@ void Widget::updateTrayIcon()
|
||||||
}
|
}
|
||||||
QString color = Settings::getInstance().getLightTrayIcon() ? "light" : "dark";
|
QString color = Settings::getInstance().getLightTrayIcon() ? "light" : "dark";
|
||||||
QString pic = ":img/taskbar/" + color + "/taskbar_" + status + ".svg";
|
QString pic = ":img/taskbar/" + color + "/taskbar_" + status + ".svg";
|
||||||
|
if (icon)
|
||||||
icon->setIcon(QIcon(pic));
|
icon->setIcon(QIcon(pic));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user