From 6a0006284365ca9694aa37ac1fae69aad9e3759e Mon Sep 17 00:00:00 2001 From: Clinton Freeman Date: Mon, 2 Apr 2012 00:31:26 -0400 Subject: [PATCH] If user cancels model selection, I trigger a selectiondelete call. Fixes the problem but I'm a little bit sketchy on how I'm handling the Undo stack... --- radiant/groupdialog.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/radiant/groupdialog.cpp b/radiant/groupdialog.cpp index 03a15de..65a183e 100644 --- a/radiant/groupdialog.cpp +++ b/radiant/groupdialog.cpp @@ -622,7 +622,10 @@ void AssignModel(){ gtk_entry_set_text( GTK_ENTRY( EntWidgets[EntValueField] ), str.GetBuffer() ); AddProp(); edit_entity->brushes.onext->bModelFailed = false; + return; } + Undo_End(); + g_pParentWnd->OnSelectionDelete(); } /*