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:
Matt Lowe 2015-03-31 22:05:02 +02:00
parent 11d1d22da5
commit 5bd37e1d06

View file

@ -425,6 +425,8 @@ MainWindow::MainWindow(QWidget *parent)
MainWindow::~MainWindow()
{
trayIcon->hide();
trayIcon->deleteLater();
client->deleteLater();
clientThread->wait();
}