mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 02:49:46 +00:00
Prevent assert due to some odd role in older qt versions.
This commit is contained in:
parent
6df593049c
commit
3da25187a9
@ -66,6 +66,10 @@ bool GuiIdListModel::setData(QModelIndex const & index,
|
||||
if (role == Qt::DecorationRole)
|
||||
// nothing to do
|
||||
return true;
|
||||
if (role == Qt::UserRole - 1)
|
||||
// This role is set by Qt <= 5.5 if setEditable()
|
||||
// of the item is false
|
||||
return true;
|
||||
// If we assert here, it's because we're trying to set an
|
||||
// unrecognized role.
|
||||
LATTEST(false);
|
||||
|
Loading…
Reference in New Issue
Block a user