commit a1432633f3a9057c9e7a44d6f58cded6ce64a825
Author: Juergen Spitzmueller <[email protected]>
Date: Wed Jul 16 12:36:01 2025 +0200
GuiRef: Fix goto label
We used the wrong widget
---
src/frontends/qt/GuiRef.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/frontends/qt/GuiRef.cpp b/src/frontends/qt/GuiRef.cpp
index 547985591e..dca912c9f1 100644
--- a/src/frontends/qt/GuiRef.cpp
+++ b/src/frontends/qt/GuiRef.cpp
@@ -338,8 +338,8 @@ void GuiRef::gotoClicked()
// and no-one seems to have any better idea.
bool const toggled =
last_reference_.isEmpty() || last_reference_.isNull();
- if (toggled && refsTW->currentItem())
- last_reference_ = refsTW->currentItem()->data(0,
Qt::UserRole).toString();
+ if (toggled && selectedLV->currentItem())
+ last_reference_ = selectedLV->currentItem()->data(0,
Qt::UserRole).toString();
gotoRef();
if (toggled)
last_reference_.clear();
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs