From 84ee8b993f624e81112374cba44dc0dba143dedd Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Sun, 19 Jul 2015 21:14:08 +0200 Subject: [PATCH] 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). --- src/gui/MainWindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index 3b01c14a2..bfca42c98 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -512,6 +512,7 @@ void MainWindow::updateTrayIcon() } else { if (m_trayIcon) { + m_trayIcon->hide(); delete m_trayIcon; m_trayIcon = Q_NULLPTR; }