Browse Source

Check icon for nullity in Widget

pull/1108/head
Tux3 / Mlkj / !Lev.uXFMLA 11 years ago
parent
commit
72bb66334e
  1. 3
      src/widget/widget.cpp

3
src/widget/widget.cpp

@ -311,7 +311,8 @@ void Widget::updateTrayIcon() @@ -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()

Loading…
Cancel
Save