]> git.lyx.org Git - lyx.git/commitdiff
Activate work area by tab click.
authorPavel Sanda <sanda@lyx.org>
Tue, 13 Jun 2023 10:11:11 +0000 (12:11 +0200)
committerPavel Sanda <sanda@lyx.org>
Tue, 13 Jun 2023 10:11:11 +0000 (12:11 +0200)
Fix for #11835.
Patch by Daniel Ramoeller.

po/cs.gmo
src/frontends/qt/GuiWorkArea.cpp

index f19e6a9413ee7fe667b181e080d1612ba38a5c98..c59df93188cf7e258c73d95797b814b15d7bcdbd 100644 (file)
Binary files a/po/cs.gmo and b/po/cs.gmo differ
index f6e3c723dfdee2e78597be93177bfab111aabf1f..87181f95e928c590c9c083ee1571159a0a33cdac 100644 (file)
@@ -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);