1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Don't free actions owned by the system tray menu

Thanks to mannol for reporting the issue
This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-11-08 23:14:22 +01:00
parent a158aed643
commit 18cf3a806b
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

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