diff options
Diffstat (limited to 'src/selection.cpp')
| -rw-r--r-- | src/selection.cpp | 6 |
1 files 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); |
