From e325c7cc6ab25fc7e0223b64019649fda8ef5ff8 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 20 Apr 2019 17:50:21 +0200 Subject: [PATCH] GuiIdListModel: ignore DecorationRole (icons of available list) --- src/frontends/qt4/GuiIdListModel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontends/qt4/GuiIdListModel.cpp b/src/frontends/qt4/GuiIdListModel.cpp index 5780cecc8f..b1db347327 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); -- 2.39.2