[LyX/master] Elaborate comment
Juergen Spitzmueller <[email protected]> Fri, 19 Jun 2026 07:44:38 +0000
| Newsgroups | gmane.editors.lyx.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 20b31ab691aa373a63b7a5bdf48d9755d51254bd Author: Juergen Spitzmueller <[email protected]> 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() -- lyx-cvs mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-cvs