commit 0342544b75f7680421191013e80d9daefc00b7ed
Author: Juergen Spitzmueller <[email protected]>
Date: Sat Apr 5 08:57:36 2025 +0200
Disable buffer list for other targets than labels
We only have access to the TocModels of the view's active buffer
(which includes parents, children and siblings, though)
---
src/frontends/qt/GuiRef.cpp | 2 ++
src/frontends/qt/ui/RefUi.ui | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/frontends/qt/GuiRef.cpp b/src/frontends/qt/GuiRef.cpp
index 1d31170733..5552207d8a 100644
--- a/src/frontends/qt/GuiRef.cpp
+++ b/src/frontends/qt/GuiRef.cpp
@@ -935,6 +935,8 @@ void GuiRef::updateRefs()
refsTW->setEnabled(enable_tw);
sortingCO->setEnabled(show_labels && !refs_.empty());
groupCB->setEnabled(show_labels && !refs_.empty());
+ bufferCO->setEnabled(show_labels);
+ bufferLA->setEnabled(show_labels);
if (show_labels) {
refsTW->header()->setVisible(true);
diff --git a/src/frontends/qt/ui/RefUi.ui b/src/frontends/qt/ui/RefUi.ui
index 6d09894997..da932cf27a 100644
--- a/src/frontends/qt/ui/RefUi.ui
+++ b/src/frontends/qt/ui/RefUi.ui
@@ -35,7 +35,7 @@
<widget class="QComboBox" name="targetCO"/>
</item>
<item>
- <widget class="QLabel" name="refsL">
+ <widget class="QLabel" name="bufferLA">
<property name="text">
<string>&In[[buffer]]:</string>
</property>
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs