[LyX/master] Assure filtered module items are not editable (#12127)

Juergen Spitzmueller spitz at lyx.org
Thu Feb 11 06:54:18 UTC 2021


commit ad1e7da1fb168e0e923aab4cce89413c4899ae25
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Thu Feb 11 07:57:09 2021 +0100

    Assure filtered module items are not editable (#12127)
---
 src/frontends/qt/GuiDocument.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/frontends/qt/GuiDocument.cpp b/src/frontends/qt/GuiDocument.cpp
index f808819..2f2033d 100644
--- a/src/frontends/qt/GuiDocument.cpp
+++ b/src/frontends/qt/GuiDocument.cpp
@@ -1896,6 +1896,7 @@ void GuiDocument::filterModules(QString const & str)
 			item->setData(m.name, Qt::DisplayRole);
 			item->setData(toqstr(m.id), Qt::UserRole);
 			item->setData(m.description, Qt::ToolTipRole);
+			item->setEditable(false);
 			if (m.local)
 				item->setIcon(user_icon);
 			else


More information about the lyx-cvs mailing list