From: knutux Date: Wed, 5 Apr 2006 15:42:53 +0000 (+0000) Subject: Fixing bug 1462517 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3dd531261ae5e8b663633a6f2d4b96a52da0e7d9;p=inkscape.git Fixing bug 1462517 --- 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);