[kde-doc-english] [trojita] src/Gui: GUI: hide the text properly after moving the mouse away from the link

Jan Kundrát jkt at flaska.net
Fri Dec 14 16:15:45 UTC 2012


Git commit 2022407ae03011792217d3a8543bef80738b9d81 by Jan Kundrát.
Committed on 13/12/2012 at 00:16.
Pushed by jkt into branch 'master'.

GUI: hide the text properly after moving the mouse away from the link

M  +4    -1    src/Gui/Window.cpp

http://commits.kde.org/trojita/2022407ae03011792217d3a8543bef80738b9d81

diff --git a/src/Gui/Window.cpp b/src/Gui/Window.cpp
index 4011709..056a7e6 100644
--- a/src/Gui/Window.cpp
+++ b/src/Gui/Window.cpp
@@ -1222,7 +1222,10 @@ void MainWindow::showConnectionStatus(QObject *parser, Imap::ConnectionState sta
 
 void MainWindow::slotShowLinkTarget(const QString &link)
 {
-    statusBar()->showMessage(tr("Link target: %1").arg(link));
+    if (link.isEmpty())
+        statusBar()->clearMessage();
+    else
+        statusBar()->showMessage(tr("Link target: %1").arg(link));
 }
 
 void MainWindow::slotShowAboutTrojita()



More information about the kde-doc-english mailing list