QTfrontend/ui/widget/SmartLineEdit.cpp
changeset 6197 4ce7c29799b9
parent 6187 59ff93c0ae2d
child 6205 7764cbe4ddd7
equal deleted inserted replaced
6196:c16e84558f71 6197:4ce7c29799b9
   220         {
   220         {
   221             if (cmd.startsWith(matchMe, Qt::CaseInsensitive))
   221             if (cmd.startsWith(matchMe, Qt::CaseInsensitive))
   222             {
   222             {
   223                 match = cmd;
   223                 match = cmd;
   224 
   224 
   225                 // move match to end so next time new matches will be prefered
   225                 // move match to end so next time new matches will be preferred
   226                 if (m_cmds->removeAll(cmd) > 0);
   226                 if (m_cmds->removeAll(cmd) > 0);
   227                     m_cmds->append(cmd);
   227                     m_cmds->append(cmd);
   228 
   228 
   229                 break;
   229                 break;
   230             }
   230             }