[Libreoffice-commits] core.git: Branch 'libreoffice-7-2' - vcl/qt5

Jan-Marek Glogowski (via logerrit) logerrit at kemper.freedesktop.org
Fri Aug 27 03:41:09 UTC 2021


 vcl/qt5/Qt5Widget.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7c1f4284562e905372b5c14b6017f1eb438f54b5
Author:     Jan-Marek Glogowski <glogow at fbihome.de>
AuthorDate: Thu Aug 26 14:23:29 2021 +0200
Commit:     Adolfo Jayme Barrientos <fitojb at ubuntu.com>
CommitDate: Fri Aug 27 05:40:35 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>
    (cherry picked from commit a1a83b6b3b4459de353e0cdc8cdf402370c0a5c4)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121064
    Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>

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