瀏覽代碼

Merge pull request #512 from lassoan/fix_menu_combobox_search_missing_item

BUG: Fixed missing list elements problem
Jean-Christophe Fillion-Robin 10 年之前
父節點
當前提交
9ae86fc87a
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;