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);
|
ui->setupUi(this);
|
||||||
|
|
||||||
if (QSystemTrayIcon::isSystemTrayAvailable() == true)
|
if (QSystemTrayIcon::isSystemTrayAvailable())
|
||||||
{
|
{
|
||||||
icon = new QSystemTrayIcon(this);
|
icon = new QSystemTrayIcon(this);
|
||||||
icon->setIcon(this->windowIcon());
|
icon->setIcon(this->windowIcon());
|
||||||
@ -280,10 +280,6 @@ Widget::~Widget()
|
|||||||
for (Group* g : GroupList::groupList)
|
for (Group* g : GroupList::groupList)
|
||||||
delete g;
|
delete g;
|
||||||
GroupList::groupList.clear();
|
GroupList::groupList.clear();
|
||||||
delete statusAway;
|
|
||||||
delete statusBusy;
|
|
||||||
delete statusOnline;
|
|
||||||
delete actionQuit;
|
|
||||||
delete trayMenu;
|
delete trayMenu;
|
||||||
delete icon;
|
delete icon;
|
||||||
delete ui;
|
delete ui;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user