From b59c2ccc2b6732d310f813d49289a3349a0e0b79 Mon Sep 17 00:00:00 2001 From: Andrius Ramanauskas Date: Wed, 5 Apr 2006 15:42:53 +0000 Subject: Fixing bug 1462517 (bzr r428) --- src/selection.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/selection.cpp') 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); -- cgit v1.2.3