summaryrefslogtreecommitdiff
path: root/libmisc
diff options
context:
space:
mode:
Diffstat (limited to 'libmisc')
-rw-r--r--libmisc/ev-page-action-widget.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libmisc/ev-page-action-widget.c b/libmisc/ev-page-action-widget.c
index e0cd9c62..62fe01fd 100644
--- a/libmisc/ev-page-action-widget.c
+++ b/libmisc/ev-page-action-widget.c
@@ -243,8 +243,10 @@ ev_page_action_widget_finalize (GObject *object)
if (action_widget->doc_model != NULL) {
if (action_widget->signal_id > 0) {
- g_signal_handler_disconnect (action_widget->doc_model,
- action_widget->signal_id);
+ if (g_signal_handler_is_connected(action_widget->doc_model,
+ action_widget->signal_id))
+ g_signal_handler_disconnect (action_widget->doc_model,
+ action_widget->signal_id);
action_widget->signal_id = 0;
}
g_object_remove_weak_pointer (G_OBJECT (action_widget->doc_model),