From 3dd531261ae5e8b663633a6f2d4b96a52da0e7d9 Mon Sep 17 00:00:00 2001 From: knutux Date: Wed, 5 Apr 2006 15:42:53 +0000 Subject: [PATCH] Fixing bug 1462517 --- src/selection.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/selection.cpp b/src/selection.cpp index 0b17eefe9..702cc6594 100644 --- a/src/selection.cpp +++ b/src/selection.cpp @@ -98,8 +98,10 @@ void Selection::_emitChanged(bool persist_selection_context/* = false */) { if (NULL == _selection_context) { _selection_context = desktop()->currentLayer(); sp_object_ref(_selection_context, NULL); - g_signal_connect(G_OBJECT(_selection_context), "release", - G_CALLBACK(&Selection::_releaseSelectionContext), this); + _context_release_handler_id = g_signal_connect( + G_OBJECT(_selection_context), "release", + G_CALLBACK(&Selection::_releaseSelectionContext), + this); } } else { _releaseContext(_selection_context); -- 2.30.2