tray icon is now hidden and then removed
I noticed that sometimes I would have lots of icons in the sys tray. I would have to mouse over them to make then be removed. This also happens with some other programs too. I have added some code to hide() the sys icon when the client is close, it seems to be helping with the issue. Hard to reproduce, might also only be a windows issue.
This commit is contained in:
parent
11d1d22da5
commit
5bd37e1d06
1 changed files with 2 additions and 0 deletions
|
@ -425,6 +425,8 @@ MainWindow::MainWindow(QWidget *parent)
|
||||||
|
|
||||||
MainWindow::~MainWindow()
|
MainWindow::~MainWindow()
|
||||||
{
|
{
|
||||||
|
trayIcon->hide();
|
||||||
|
trayIcon->deleteLater();
|
||||||
client->deleteLater();
|
client->deleteLater();
|
||||||
clientThread->wait();
|
clientThread->wait();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue