1
0
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:
Tux3 / Mlkj / !Lev.uXFMLA 2015-02-05 21:41:34 +01:00
parent 88ba0cb6b9
commit 72bb66334e

View File

@ -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));
} }