From 18cf3a806bbe47d7d29937fa51b35571d8c743d6 Mon Sep 17 00:00:00 2001 From: "Tux3 / Mlkj / !Lev.uXFMLA" Date: Sat, 8 Nov 2014 23:14:22 +0100 Subject: [PATCH] Don't free actions owned by the system tray menu Thanks to mannol for reporting the issue --- src/widget/widget.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index 03bdf097c..0b3eb9d8b 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -64,7 +64,7 @@ void Widget::init() { ui->setupUi(this); - if (QSystemTrayIcon::isSystemTrayAvailable() == true) + if (QSystemTrayIcon::isSystemTrayAvailable()) { icon = new QSystemTrayIcon(this); icon->setIcon(this->windowIcon()); @@ -280,10 +280,6 @@ Widget::~Widget() for (Group* g : GroupList::groupList) delete g; GroupList::groupList.clear(); - delete statusAway; - delete statusBusy; - delete statusOnline; - delete actionQuit; delete trayMenu; delete icon; delete ui;