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)
|
||||
icon->hide();
|
||||
|
||||
delete icon;
|
||||
delete profileForm;
|
||||
delete settingsWidget;
|
||||
delete addFriendForm;
|
||||
|
|
|
@ -234,7 +234,7 @@ private:
|
|||
void focusChatInput();
|
||||
|
||||
private:
|
||||
SystemTrayIcon *icon;
|
||||
SystemTrayIcon *icon = nullptr;
|
||||
QMenu *trayMenu;
|
||||
QAction *statusOnline;
|
||||
QAction *statusAway;
|
||||
|
|
Loading…
Reference in New Issue
Block a user