[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-commits] Commit Complete



Commit by  : alex
Repository : xara
Revision   : 926
Date       : Tue May  2 09:46:02 BST 2006

Changed paths:
   M /Trunk/XaraLX/wxOil/dlgmgr.cpp

Do not defer closing of dialogs. Possible to fix to bug 933

http://bugzilla.xara.com/show_bug.cgi?id=993


Diff:
Index: Trunk/XaraLX/wxOil/dlgmgr.cpp
===================================================================
--- Trunk/XaraLX/wxOil/dlgmgr.cpp	(revision 925)
+++ Trunk/XaraLX/wxOil/dlgmgr.cpp	(revision 926)
@@ -860,6 +860,9 @@
 		else if (id == _R(wxID_CANCEL))
 		{
 			msg.DlgMsg = DIM_CANCEL;
+			// Do not defer processing of clicks on the close button because the default handler may destroy the window on
+			// exit from this call
+			Defer=FALSE; 
 			HandleMessage = TRUE;
 		}
 		else


Xara