From: Juergen Spitzmueller Date: Sat, 20 Apr 2019 15:50:21 +0000 (+0200) Subject: GuiIdListModel: ignore DecorationRole (icons of available list) X-Git-Tag: lyx-2.4.0dev-acb2ca7b~2132 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e325c7cc6ab25fc7e0223b64019649fda8ef5ff8;p=features.git GuiIdListModel: ignore DecorationRole (icons of available list) --- 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);