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:
parent
a158aed643
commit
18cf3a806b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user