[Libreoffice-commits] core.git: Branch 'libreoffice-6-2' - include/vcl

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Nov 27 20:09:03 UTC 2018


 include/vcl/weld.hxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 6e8605ee6de4ead23925476f0e945b51dea26be0
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Nov 27 14:57:08 2018 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Nov 27 21:08:49 2018 +0100

    Related: tdf#94446 don't assert on unsetting focus handlers
    
    Change-Id: I7817f66974807eaf7d16a6d0dc30b4fbd6d366a5
    Reviewed-on: https://gerrit.libreoffice.org/64119
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx
index fa2ba7bcd03a..da5650395579 100644
--- a/include/vcl/weld.hxx
+++ b/include/vcl/weld.hxx
@@ -98,13 +98,13 @@ public:
 
     virtual void connect_focus_in(const Link<Widget&, void>& rLink)
     {
-        assert(!m_aFocusInHdl.IsSet());
+        assert(!m_aFocusInHdl.IsSet() || !rLink.IsSet());
         m_aFocusInHdl = rLink;
     }
 
     virtual void connect_focus_out(const Link<Widget&, void>& rLink)
     {
-        assert(!m_aFocusOutHdl.IsSet());
+        assert(!m_aFocusOutHdl.IsSet() || !rLink.IsSet());
         m_aFocusOutHdl = rLink;
     }
 


More information about the Libreoffice-commits mailing list