commit 152811a27d242dbc119cc55831565fdfc96630a0
Author: Pavel Sanda <sa...@lyx.org>
Date:   Tue Jun 13 12:11:11 2023 +0200

    Activate work area by tab click.
    
    Fix for #11835.
    Patch by Daniel Ramoeller.
---
 po/cs.gmo                        |  Bin 497837 -> 619406 bytes
 src/frontends/qt/GuiWorkArea.cpp |    5 +++++
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/po/cs.gmo b/po/cs.gmo
index f19e6a9..c59df93 100644
Binary files a/po/cs.gmo and b/po/cs.gmo differ
diff --git a/src/frontends/qt/GuiWorkArea.cpp b/src/frontends/qt/GuiWorkArea.cpp
index f6e3c72..87181f9 100644
--- a/src/frontends/qt/GuiWorkArea.cpp
+++ b/src/frontends/qt/GuiWorkArea.cpp
@@ -1499,6 +1499,11 @@ TabWorkArea::TabWorkArea(QWidget * parent)
 
        QObject::connect(this, SIGNAL(currentChanged(int)),
                this, SLOT(on_currentTabChanged(int)));
+#if QT_VERSION >= 0x050200
+       // Fix for #11835
+       QObject::connect(this, SIGNAL(tabBarClicked(int)),
+               this, SLOT(on_currentTabChanged(int)));
+#endif
 
        closeBufferButton = new QToolButton(this);
        closeBufferButton->setPalette(pal);
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to