diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-10-11 21:38:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-10-12 09:46:44 +0200 |
commit | 4aad457ef429f09015d01ac0f368c9768157c615 (patch) | |
tree | 7758c34de9382683deea32d70e17c271ac00acb3 /vcl | |
parent | b6137b659e5358dfb5be4c4191bc1199de190f9e (diff) |
set m_nSizeAllocateSignalId to 0 when not installed
Change-Id: I1023f5b51fefd86d7faa749c9488a7fcaeeaf3ff
Reviewed-on: https://gerrit.libreoffice.org/61695
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkinst.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx index a786e48e0233..3c8fe4aeddd1 100644 --- a/vcl/unx/gtk3/gtk3gtkinst.cxx +++ b/vcl/unx/gtk3/gtk3gtkinst.cxx @@ -2861,6 +2861,8 @@ public: { if (get_n_pages() > 6) m_nSizeAllocateSignalId = g_signal_connect(pNotebook, "size-allocate", G_CALLBACK(signalSizeAllocate), this); + else + m_nSizeAllocateSignalId = 0; } virtual int get_current_page() const override |