aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index df9ce49..d115ec3 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -369,7 +369,8 @@ static gint set_tool_sig(GtkWidget *widget, GtkRadioAction *action,
struct presentation *p)
{
if ( p->editing_object != NULL ) {
- p->cur_tool->deselect(p->editing_object, p->cur_tool);
+ int d = p->cur_tool->deselect(p->editing_object, p->cur_tool);
+ if ( d ) p->editing_object = NULL;
}
switch ( gtk_radio_action_get_current_value(action) )