diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-10-10 15:02:58 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-10-10 17:14:19 +0200 |
commit | 013861c44009a041b0f3fc628358e5eaf1db5895 (patch) | |
tree | 954adbef3b1b6999409ddaea54b9d920ca334300 /vcl/unx | |
parent | 0563010afa673b93cf3a39ba30910053d2c6ec9e (diff) |
avoid warning on teardown for non-dialogs/assistants
Change-Id: Icba9df171fee73e16133794017ead1ad4a7fc470
Reviewed-on: https://gerrit.libreoffice.org/80613
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkinst.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx index 67cf394bf345..1ddbc7f0b180 100644 --- a/vcl/unx/gtk3/gtk3gtkinst.cxx +++ b/vcl/unx/gtk3/gtk3gtkinst.cxx @@ -4187,7 +4187,8 @@ public: m_aHiddenWidgets.clear(); } - g_signal_handler_disconnect(m_pDialog, m_nCloseSignalId); + if (m_nCloseSignalId) + g_signal_handler_disconnect(m_pDialog, m_nCloseSignalId); if (m_nResponseSignalId) g_signal_handler_disconnect(m_pDialog, m_nResponseSignalId); if (m_nCancelSignalId) |