[rkward] rkward/windows: Fix disappearing status label issue
    Thomas Friedrichsmeier 
    null at kde.org
       
    Fri Sep 28 21:28:42 BST 2018
    
    
  
Git commit 14cde5ec17bef471463c9555b9240d939cd768c6 by Thomas Friedrichsmeier.
Committed on 28/09/2018 at 20:20.
Pushed by tfry into branch 'master'.
Fix disappearing status label issue
M  +2    -4    rkward/windows/rkmdiwindow.cpp
https://commits.kde.org/rkward/14cde5ec17bef471463c9555b9240d939cd768c6
diff --git a/rkward/windows/rkmdiwindow.cpp b/rkward/windows/rkmdiwindow.cpp
index cc1ae522..784817b5 100644
--- a/rkward/windows/rkmdiwindow.cpp
+++ b/rkward/windows/rkmdiwindow.cpp
@@ -357,7 +357,7 @@ void RKMDIWindow::setStatusMessage (const QString& message, RCommand *command) {
 	} else {
 		status_popup_container->hide ();
 		status_popup->hide ();
-		status_popup->setText (QString ());  // this is a lame way to keep track of whether the popup is empty. See resizeEvent()
+		status_popup->setText (QString ());
 	}
 }
 
@@ -368,9 +368,7 @@ void RKMDIWindow::clearStatusMessage () {
 }
 
 void RKMDIWindow::resizeEvent (QResizeEvent*) {
-	if (status_popup_container && !status_popup->text ().isEmpty ()) {
-		status_popup_container->resize (size ());
-	}
+	if (status_popup_container) status_popup_container->resize (size ());
 }
 
 
    
    
More information about the rkward-tracker
mailing list