[LyX/master] Amend 8729529f0c
Juergen Spitzmueller <[email protected]> Thu, 18 Jun 2026 15:36:34 +0000
| Newsgroups | gmane.editors.lyx.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 107f4ed030de22fb66b25811a2b476bcabac8e45 Author: Juergen Spitzmueller <[email protected]> Date: Thu Jun 18 17:36:08 2026 +0200 Amend 8729529f0c Remove now unused member --- src/frontends/qt/GuiToolbar.cpp | 8 +------- 1 file changed, 1 insertion(+), 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() -- lyx-cvs mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-cvs