diff -r ef53ba841791 -r 999215ca87d7 QTfrontend/ui/widget/SmartLineEdit.cpp --- 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; }