[qet] [1493] Partially fixed some problems inherent to adding/ updating panel items when a filter is applied.

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 1493
Author:   xavier
Date:     2012-02-06 23:46:26 +0100 (Mon, 06 Feb 2012)
Log Message:
-----------
Partially fixed some problems inherent to adding/updating panel items when a filter is applied.

Modified Paths:
--------------
    branches/0.3/sources/elementspanelwidget.cpp

Modified: branches/0.3/sources/elementspanelwidget.cpp
===================================================================
--- branches/0.3/sources/elementspanelwidget.cpp	2012-02-06 22:34:52 UTC (rev 1492)
+++ branches/0.3/sources/elementspanelwidget.cpp	2012-02-06 22:46:26 UTC (rev 1493)
@@ -190,7 +190,9 @@
 	elements_panel -> reload(true);
 	
 	// reapplique le filtre
-	elements_panel -> filter(filter_textfield -> text());
+	if (!filter_textfield -> text().isEmpty()) {
+		elements_panel -> filter(filter_textfield -> text());
+	}
 }
 
 /**


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/