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,7 +311,8 @@ 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";
|
||||||
icon->setIcon(QIcon(pic));
|
if (icon)
|
||||||
|
icon->setIcon(QIcon(pic));
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget::~Widget()
|
Widget::~Widget()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user