mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
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
This commit is contained in:
parent
09a0e37b15
commit
c912d253f2
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user