From: Mattia Basaglia Date: Sun, 19 Jul 2015 19:07:02 +0000 (+0200) Subject: Don't call Cancel from OK in the Arbitrary rotation and scale dialogs X-Git-Tag: xonotic-v0.8.1~1^2~3^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c11289095a8f5dd71a57de4f7a8707972aa2e2c7;p=xonotic%2Fnetradiant.git Don't call Cancel from OK in the Arbitrary rotation and scale dialogs --- diff --git a/radiant/select.cpp b/radiant/select.cpp index 4246ab42..5d34645a 100644 --- a/radiant/select.cpp +++ b/radiant/select.cpp @@ -900,7 +900,7 @@ static gboolean rotatedlg_cancel( GtkWidget *widget, RotateDialog* rotateDialog static gboolean rotatedlg_ok( GtkWidget *widget, RotateDialog* rotateDialog ){ rotatedlg_apply( widget, rotateDialog ); - rotatedlg_cancel( widget, rotateDialog ); + gtk_widget_hide( GTK_WIDGET( rotateDialog->window ) ); return TRUE; } @@ -1052,7 +1052,7 @@ static gboolean scaledlg_cancel( GtkWidget *widget, ScaleDialog* scaleDialog ){ static gboolean scaledlg_ok( GtkWidget *widget, ScaleDialog* scaleDialog ){ scaledlg_apply( widget, scaleDialog ); - scaledlg_cancel( widget, scaleDialog ); + gtk_widget_hide( GTK_WIDGET( scaleDialog->window ) ); return TRUE; }