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 committed 2015-07-19 21:14:08 +02:00
1 parent 3d1c27ceb7
commit 84ee8b993f
1 file changed
+1
+1
View File
@@ -512,6 +512,7 @@ void MainWindow::updateTrayIcon()
}
else {
if (m_trayIcon) {
m_trayIcon->hide();
delete m_trayIcon;
m_trayIcon = Q_NULLPTR;
}