Explicity hide the tray icon before deleting it.

In some conditions the tray icon stayed visible until the application
was closed.
Tested on Kubuntu 15.04 (KDE Plasma 5.2).
This commit is contained in:
Felix Geyer 2015-07-19 21:14:08 +02:00
parent 3d1c27ceb7
commit 84ee8b993f

View File

@ -512,6 +512,7 @@ void MainWindow::updateTrayIcon()
}
else {
if (m_trayIcon) {
m_trayIcon->hide();
delete m_trayIcon;
m_trayIcon = Q_NULLPTR;
}