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
This commit is contained in:
Vincent van Ravesteijn 2009-02-09 23:20:52 +00:00
parent 09a0e37b15
commit c912d253f2

View File

@ -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();
}