]> git.lyx.org Git - features.git/commitdiff
GuiIdListModel: ignore DecorationRole (icons of available list)
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 20 Apr 2019 15:50:21 +0000 (17:50 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 20 Apr 2019 15:50:21 +0000 (17:50 +0200)
src/frontends/qt4/GuiIdListModel.cpp

index 5780cecc8f740665528b877c68ac636c87c124e5..b1db347327eca8e6bab16e53712d8c3c8ba425fb 100644 (file)
@@ -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);