[rkward/frameworks] rkward/misc: Only add icon once for each update.

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Tue Feb 16 19:57:30 UTC 2016


Git commit 8b57543ae94306ad095ed0cb3e0966587911cdcf by Thomas Friedrichsmeier.
Committed on 16/02/2016 at 05:47.
Pushed by tfry into branch 'frameworks'.

Only add icon once for each update.

M  +4    -2    rkward/misc/rkdynamicsearchline.cpp

http://commits.kde.org/rkward/8b57543ae94306ad095ed0cb3e0966587911cdcf

diff --git a/rkward/misc/rkdynamicsearchline.cpp b/rkward/misc/rkdynamicsearchline.cpp
index fe6032c..63028e1 100644
--- a/rkward/misc/rkdynamicsearchline.cpp
+++ b/rkward/misc/rkdynamicsearchline.cpp
@@ -45,8 +45,10 @@ RKDynamicSearchLine::~RKDynamicSearchLine () {
 
 void RKDynamicSearchLine::textChanged () {
 	RK_TRACE (MISC);
-	// KF5 TODO: Add activity indicator
-	addAction (working_indicator, QLineEdit::TrailingPosition);
+
+	if (!timer.isActive ()) {
+		addAction (working_indicator, QLineEdit::TrailingPosition);
+	}
 	timer.start (300);
 }
 



More information about the rkward-tracker mailing list