/[pcsx2_0.9.7]/trunk/common/src/Utilities/wxHelpers.cpp
ViewVC logotype

Diff of /trunk/common/src/Utilities/wxHelpers.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/common/src/Utilities/wxHelpers.cpp	2010/12/23 11:48:33	279
+++ trunk/common/src/Utilities/wxHelpers.cpp	2010/12/23 12:02:12	280
@@ -274,13 +274,13 @@
 	return *new pxStaticHeading( this, label );
 }
 
-void wxDialogWithHelpers::OnCloseWindow( wxCloseEvent& evt )
+bool wxDialogWithHelpers::Destroy()
 {
 	// Save the dialog position if the dialog is named...
 	// FIXME : This doesn't get called if the app is exited by alt-f4'ing the main app window.
 	//   ... not sure how to fix that yet.  I could register a list of open windows into wxAppWithHelpers
 	//   that systematically get closed.  Seems like work, maybe later.  --air
-	
+
 	if( wxConfigBase* cfg = IsIconized() ? NULL : wxConfigBase::Get( false ) )
 	{
 		const wxString dlgName( GetDialogName() );
@@ -300,6 +300,11 @@
 		}
 	}
 
+	return _parent::Destroy();
+}
+
+void wxDialogWithHelpers::OnCloseWindow( wxCloseEvent& evt )
+{
 	if( !IsModal() ) Destroy();
 	evt.Skip();
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22