commit 0dcb3e9fbe39fa1efe4e208b047ab50058813992
Author: Juergen Spitzmueller <[email protected]>
Date: Thu Jun 18 17:36:08 2026 +0200
Amend 8729529f0c
Remove now unused member
(cherry picked from commit 107f4ed030de22fb66b25811a2b476bcabac8e45)
---
src/frontends/qt/GuiToolbar.cpp | 8 +-------
status.25x | 2 ++
2 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/src/frontends/qt/GuiToolbar.cpp b/src/frontends/qt/GuiToolbar.cpp
index 36357e840d..ff8ce5dd38 100644
--- a/src/frontends/qt/GuiToolbar.cpp
+++ b/src/frontends/qt/GuiToolbar.cpp
@@ -333,12 +333,10 @@ class DynamicMenuButton::Private
Private(Private const &);
void operator=(Private const &);
public:
- Private() : inset_(nullptr) {}
+ Private() {}
///
DocumentClassConstPtr text_class_;
///
- InsetText const * inset_;
- ///
list<FuncRequest> func_requests_;
};
@@ -403,12 +401,10 @@ void DynamicMenuButton::updateTriggered()
setEnabled(false);
setMinimumWidth(sizeHint().width());
d->text_class_.reset();
- d->inset_ = nullptr;
return;
}
DocumentClassConstPtr text_class =
bv->buffer().params().documentClassPtr();
- InsetText const * inset = &(bv->cursor().innerText()->inset());
// if the text class has changed, then we need to reload the
menu
if (d->text_class_ != text_class) {
d->text_class_ = text_class;
@@ -417,8 +413,6 @@ void DynamicMenuButton::updateTriggered()
// might need to have other options.
loadFlexInsets();
}
- // remember where we are
- d->inset_ = inset;
// note that enabling here might need to be more subtle if there
// were other kinds of menus.
setEnabled(!bv->buffer().isReadonly()
diff --git a/status.25x b/status.25x
index 3d753becb9..d68799bbb1 100644
--- a/status.25x
+++ b/status.25x
@@ -50,6 +50,8 @@ What's new
- Fix autoselect filter on Citation dialog (bug #13333).
+- Fix status setting of DynamicMenuButton (bug 13332).
+
* INTERNALS
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs