[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - svtools/source
Szymon KÅos (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jun 29 10:09:27 UTC 2021
svtools/source/control/toolbarmenu.cxx | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 6635ef91491bab4737c9897091c9104356440870
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Tue Jun 29 10:36:10 2021 +0200
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Tue Jun 29 12:08:55 2021 +0200
jsdialog: sidebar: don't close popups when first time used
Change-Id: I9a4f96acf44f3503f7bd978883d9d20de528b7bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118073
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
diff --git a/svtools/source/control/toolbarmenu.cxx b/svtools/source/control/toolbarmenu.cxx
index a8f18d60c61c..998af5390693 100644
--- a/svtools/source/control/toolbarmenu.cxx
+++ b/svtools/source/control/toolbarmenu.cxx
@@ -18,6 +18,7 @@
*/
#include <memory>
+#include <comphelper/lok.hxx>
#include <comphelper/processfactory.hxx>
#include <osl/diagnose.h>
@@ -151,7 +152,11 @@ void ToolbarPopupContainer::setPopover(std::unique_ptr<WeldToolbarPopup> xPopup)
// move the WeldToolbarPopup contents into this toolbar so on-demand contents can appear inside a preexisting gtk popover
// because the arrow for the popover is only enabled if there's a popover set
m_xPopup->getTopLevel()->move(m_xPopup->getContainer(), m_xContainer.get());
- m_xPopup->GrabFocus();
+
+ // in online LoseFocus event is fired due to this line and popup is closed
+ // when first time opened any popup from not focused sidebar
+ if (!comphelper::LibreOfficeKit::isActive())
+ m_xPopup->GrabFocus();
}
void ToolbarPopupContainer::unsetPopover()
More information about the Libreoffice-commits
mailing list