QTfrontend/ui/widget/SmartLineEdit.cpp
changeset 6218 999215ca87d7
parent 6217 ef53ba841791
child 6616 f77bb02b669f
--- a/QTfrontend/ui/widget/SmartLineEdit.cpp	Thu Oct 27 21:33:18 2011 +0400
+++ b/QTfrontend/ui/widget/SmartLineEdit.cpp	Thu Oct 27 22:52:22 2011 +0200
@@ -199,8 +199,8 @@
                 match = cmd;
 
                 // move match to end so next time new matches will be preferred
-				if (m_cmds->removeAll(cmd) > 0)
-                    m_cmds->append(cmd);
+                m_cmds->removeAll(cmd);
+                m_cmds->append(cmd);
 
                 break;
             }
@@ -218,8 +218,8 @@
                 isNick = true;
 
                 // move match to end so next time new matches will be prefered
-				if (m_nicks->removeAll(nick) > 0)
-                    m_nicks->append(nick);
+                m_nicks->removeAll(nick);
+                m_nicks->append(nick);
 
                 break;
             }