[Libreoffice-commits] core.git: vcl/qt5
Jan-Marek Glogowski (via logerrit)
logerrit at kemper.freedesktop.org
Thu Aug 26 15:59:27 UTC 2021
vcl/qt5/Qt5Widget.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit a1a83b6b3b4459de353e0cdc8cdf402370c0a5c4
Author: Jan-Marek Glogowski <glogow at fbihome.de>
AuthorDate: Thu Aug 26 14:23:29 2021 +0200
Commit: Jan-Marek Glogowski <glogow at fbihome.de>
CommitDate: Thu Aug 26 17:58:50 2021 +0200
tdf#144037 Qt5 just close popup with mouse outside
How hard could it be to close a popup window when losing focus or
clicking outside of it (AKA tdf#143114 problem 3)? At least with
Qt it feels like solving an NP problem...
So don't always force-close the popup window if clicked anywhere
on it. Seems to be consistent with gen and gtk3.
Change-Id: Ia1c231c0b51a55bec2c587feffcf14bb4b4cee55
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121093
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow at fbihome.de>
diff --git a/vcl/qt5/Qt5Widget.cxx b/vcl/qt5/Qt5Widget.cxx
index 864701340ad3..64ad4f7539c4 100644
--- a/vcl/qt5/Qt5Widget.cxx
+++ b/vcl/qt5/Qt5Widget.cxx
@@ -182,7 +182,7 @@ void Qt5Widget::mousePressEvent(QMouseEvent* pEvent)
{
handleMousePressEvent(m_rFrame, pEvent);
if (m_rFrame.isPopup()
- || !geometry().translated(geometry().topLeft() * -1).contains(pEvent->pos()))
+ && !geometry().translated(geometry().topLeft() * -1).contains(pEvent->pos()))
closePopup();
}
More information about the Libreoffice-commits
mailing list