diff options
| author | Glenn Rice <glennricster@gmail.com> | 2011-03-16 22:22:21 +0000 |
|---|---|---|
| committer | Glenn Rice <glennricster@gmail.com> | 2011-03-16 22:22:21 +0000 |
| commit | bca4f94b47c13f6ddc9e00f451d32b1cc9cc54fb (patch) | |
| tree | c26b52d616fb99f15acb4a462146d1df1f7e1262 /Source/Plugins/Plugin_VideoSoftware/Src/SWmain.cpp | |
| parent | 2692ba26977bc2c981e083b05870ae193f83f813 (diff) | |
More work on making dialogs close when escape is pressed, and some general GUI code clean up.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7360 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_VideoSoftware/Src/SWmain.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoSoftware/Src/SWmain.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Plugins/Plugin_VideoSoftware/Src/SWmain.cpp b/Source/Plugins/Plugin_VideoSoftware/Src/SWmain.cpp index d0478c2f61..a2567ad820 100644 --- a/Source/Plugins/Plugin_VideoSoftware/Src/SWmain.cpp +++ b/Source/Plugins/Plugin_VideoSoftware/Src/SWmain.cpp @@ -57,9 +57,8 @@ void *DllDebugger(void *_hParent, bool Show) void VideoBackend::ShowConfig(void *_hParent) { #if defined(HAVE_WX) && HAVE_WX - VideoConfigDialog* const diag = new VideoConfigDialog((wxWindow*)_hParent, "Software", "gfx_software"); - diag->ShowModal(); - diag->Destroy(); + VideoConfigDialog diag((wxWindow*)_hParent, "Software", "gfx_software"); + diag.ShowModal(); #endif } |
