[rkward/work/render_rmd] rkward/windows: Fix disappearing status label issue

Thomas Friedrichsmeier null at kde.org
Fri Sep 28 20:04:27 BST 2018


Git commit 6644321bfdb6c9b31adaec7030599a35dcc9a47e by Thomas Friedrichsmeier.
Committed on 28/09/2018 at 19:03.
Pushed by tfry into branch 'work/render_rmd'.

Fix disappearing status label issue

M  +2    -4    rkward/windows/rkmdiwindow.cpp

https://commits.kde.org/rkward/6644321bfdb6c9b31adaec7030599a35dcc9a47e

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