From c912d253f23f2f7e38b36824b73dc7cb8447e01e Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Mon, 9 Feb 2009 23:20:52 +0000 Subject: [PATCH] Fix bug 5711: http://bugzilla.lyx.org/show_bug.cgi?id=5711. Add button in Citation dialog grayed out when key matches the start of an already selected key. One parameter of match() was forgotten, so the MatchFlags were basically ignored, i.e. the standard flags were used always. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28425 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiSelectionManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiSelectionManager.cpp b/src/frontends/qt4/GuiSelectionManager.cpp index dda0458868..694f791bda 100644 --- a/src/frontends/qt4/GuiSelectionManager.cpp +++ b/src/frontends/qt4/GuiSelectionManager.cpp @@ -144,7 +144,7 @@ bool GuiSelectionManager::isSelected(const QModelIndex & idx) QVariant const & str = availableModel->data(idx, Qt::DisplayRole); QModelIndexList qmil = selectedModel->match(selectedModel->index(0), - Qt::DisplayRole, str, + Qt::DisplayRole, str, 1, Qt::MatchExactly | Qt::MatchWrap); return !qmil.empty(); } -- 2.39.5