[LyX/master] Elaborate comment

Juergen Spitzmueller spitz at lyx.org
Fri Jun 19 07:44:38 UTC 2026


commit 20b31ab691aa373a63b7a5bdf48d9755d51254bd
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Fri Jun 19 09:44:06 2026 +0200

    Elaborate comment
---
 src/frontends/qt/GuiToolbar.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/frontends/qt/GuiToolbar.cpp b/src/frontends/qt/GuiToolbar.cpp
index ff8ce5dd38..269b58643f 100644
--- a/src/frontends/qt/GuiToolbar.cpp
+++ b/src/frontends/qt/GuiToolbar.cpp
@@ -413,8 +413,10 @@ void DynamicMenuButton::updateTriggered()
 			// might need to have other options.
 			loadFlexInsets();
 		}
-		// note that enabling here might need to be more subtle if there
-		// were other kinds of menus.
+		// Currently all flex insets are allowed in the same contexts,
+		// so it is sufficient to check for an arbitrary one in the
+		// menu. Enabling might need to be more subtle if therewere other
+		// kinds of menus.
 		setEnabled(!bv->buffer().isReadonly()
 			   && !m->isEmpty()
 			   && !d->func_requests_.empty()


More information about the lyx-cvs mailing list