[kde-doc-english] [trojita] src/Gui: GUI: simplify deleting the systray icon when removing it
Jan Kundrát
jkt at flaska.net
Wed Jun 5 10:59:16 UTC 2013
Git commit d38dc80d3cf94bd61b24b7d1117f40ec9621e584 by Jan Kundrát.
Committed on 05/06/2013 at 12:57.
Pushed by jkt into branch 'master'.
GUI: simplify deleting the systray icon when removing it
Suggested by Thomas Lübking in RR 110832.
M +0 -4 src/Gui/Window.cpp
http://commits.kde.org/trojita/d38dc80d3cf94bd61b24b7d1117f40ec9621e584
diff --git a/src/Gui/Window.cpp b/src/Gui/Window.cpp
index d91fab0..9c870c7 100644
--- a/src/Gui/Window.cpp
+++ b/src/Gui/Window.cpp
@@ -775,10 +775,6 @@ void MainWindow::createSysTray()
void MainWindow::removeSysTray()
{
- if (!m_trayIcon)
- return;
-
- m_trayIcon->hide();
delete m_trayIcon;
m_trayIcon = 0;
}
More information about the kde-doc-english
mailing list