Procházet zdrojové kódy

Merge pull request #512 from lassoan/fix_menu_combobox_search_missing_item

BUG: Fixed missing list elements problem
Jean-Christophe Fillion-Robin před 11 roky
rodič
revize
9ae86fc87a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Libs/Widgets/ctkMenuComboBox.cpp

+ 1 - 1
Libs/Widgets/ctkMenuComboBox.cpp

@@ -248,7 +248,7 @@ void ctkMenuComboBoxPrivate::addActionToCompleter(QAction *action)
     this->SearchCompleter->sourceModel());
   Q_ASSERT(model);
   QModelIndex start = model->index(0,0);
-  QModelIndexList indexList = model->match(start, 0, action->text());
+  QModelIndexList indexList = model->match(start, 0, action->text(), 1, Qt::MatchFixedString|Qt::MatchWrap);
   if (indexList.count())
     {
     return;