QTfrontend/ui/widget/SmartLineEdit.cpp
changeset 6217 ef53ba841791
parent 6205 7764cbe4ddd7
child 6218 999215ca87d7
equal deleted inserted replaced
6216:a6186a8ba90a 6217:ef53ba841791
   197             if (cmd.startsWith(matchMe, Qt::CaseInsensitive))
   197             if (cmd.startsWith(matchMe, Qt::CaseInsensitive))
   198             {
   198             {
   199                 match = cmd;
   199                 match = cmd;
   200 
   200 
   201                 // move match to end so next time new matches will be preferred
   201                 // move match to end so next time new matches will be preferred
   202                 if (m_cmds->removeAll(cmd) > 0);
   202 				if (m_cmds->removeAll(cmd) > 0)
   203                     m_cmds->append(cmd);
   203                     m_cmds->append(cmd);
   204 
   204 
   205                 break;
   205                 break;
   206             }
   206             }
   207         }
   207         }
   216             {
   216             {
   217                 match = nick;
   217                 match = nick;
   218                 isNick = true;
   218                 isNick = true;
   219 
   219 
   220                 // move match to end so next time new matches will be prefered
   220                 // move match to end so next time new matches will be prefered
   221                 if (m_nicks->removeAll(nick) > 0);
   221 				if (m_nicks->removeAll(nick) > 0)
   222                     m_nicks->append(nick);
   222                     m_nicks->append(nick);
   223 
   223 
   224                 break;
   224                 break;
   225             }
   225             }
   226         }
   226         }