[LyX/master] If the comment is correct, this code is not needed anymore

Jean-Marc Lasgouttes lasgouttes at lyx.org
Wed Oct 23 14:31:40 UTC 2024


commit 0a4f7db0223fbe01786a761a4de521955f483aff
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Wed Oct 23 13:39:52 2024 +0200

    If the comment is correct, this code is not needed anymore
    
    This was introduced at 3da25187.
---
 src/frontends/qt/GuiIdListModel.cpp | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/frontends/qt/GuiIdListModel.cpp b/src/frontends/qt/GuiIdListModel.cpp
index fc0c7daa1b..a8a3a71dbd 100644
--- a/src/frontends/qt/GuiIdListModel.cpp
+++ b/src/frontends/qt/GuiIdListModel.cpp
@@ -66,10 +66,6 @@ bool GuiIdListModel::setData(QModelIndex const & index,
 	if (role == Qt::DecorationRole)
 		// nothing to do
 		return true;
-	if (role == Qt::UserRole - 1)
-		// This role is set by Qt <= 5.5 if setEditable()
-		// of the item is false
-		return true;
 	// If we assert here, it's because we're trying to set an
 	// unrecognized role.
 	LATTEST(false);


More information about the lyx-cvs mailing list