mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(widget): delete icon in destructor
This commit is contained in:
parent
7b34625d55
commit
f82f49da4d
|
@ -507,6 +507,7 @@ Widget::~Widget()
|
||||||
if (icon)
|
if (icon)
|
||||||
icon->hide();
|
icon->hide();
|
||||||
|
|
||||||
|
delete icon;
|
||||||
delete profileForm;
|
delete profileForm;
|
||||||
delete settingsWidget;
|
delete settingsWidget;
|
||||||
delete addFriendForm;
|
delete addFriendForm;
|
||||||
|
|
|
@ -234,7 +234,7 @@ private:
|
||||||
void focusChatInput();
|
void focusChatInput();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
SystemTrayIcon *icon;
|
SystemTrayIcon *icon = nullptr;
|
||||||
QMenu *trayMenu;
|
QMenu *trayMenu;
|
||||||
QAction *statusOnline;
|
QAction *statusOnline;
|
||||||
QAction *statusAway;
|
QAction *statusAway;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user