commit e325c7cc6ab25fc7e0223b64019649fda8ef5ff8
Author: Juergen Spitzmueller <[email protected]>
Date: Sat Apr 20 17:50:21 2019 +0200
GuiIdListModel: ignore DecorationRole (icons of available list)
---
src/frontends/qt4/GuiIdListModel.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/frontends/qt4/GuiIdListModel.cpp
b/src/frontends/qt4/GuiIdListModel.cpp
index 5780cec..b1db347 100644
--- a/src/frontends/qt4/GuiIdListModel.cpp
+++ b/src/frontends/qt4/GuiIdListModel.cpp
@@ -63,6 +63,9 @@ bool GuiIdListModel::setData(QModelIndex const & index,
dataChanged(index, index);
return true;
}
+ if (role == Qt::DecorationRole)
+ // nothing to do
+ return true;
// If we assert here, it's because we're trying to set an
// unrecognized role.
LATTEST(false);