From 72bb66334ec2f2bef73686fe7b8645353d9ba907 Mon Sep 17 00:00:00 2001 From: "Tux3 / Mlkj / !Lev.uXFMLA" Date: Thu, 5 Feb 2015 21:41:34 +0100 Subject: [PATCH] Check icon for nullity in Widget --- src/widget/widget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index fcdaa2050..eb3999504 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -311,7 +311,8 @@ void Widget::updateTrayIcon() } QString color = Settings::getInstance().getLightTrayIcon() ? "light" : "dark"; QString pic = ":img/taskbar/" + color + "/taskbar_" + status + ".svg"; - icon->setIcon(QIcon(pic)); + if (icon) + icon->setIcon(QIcon(pic)); } Widget::~Widget()