summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorXTra.KrazzY <XTra.KrazzY@gmail.com>2009-02-05 05:44:16 +0000
committerXTra.KrazzY <XTra.KrazzY@gmail.com>2009-02-05 05:44:16 +0000
commit7cc80c32f9ebb520e361ecebf50cd424b9cf7e76 (patch)
treed6528e9c95c3dc63142abaaf97f80d30e8afb174 /Source
parent3d73d781ec72b4504592a3e4094c25cd1e77ca01 (diff)
Fixed Wiimote config window closing (Don't use EndModal if you aren't using ShowModal)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2117 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinWX/Src/ISOProperties.cpp6
-rw-r--r--Source/Plugins/Plugin_Wiimote/Src/main.cpp6
2 files changed, 4 insertions, 8 deletions
diff --git a/Source/Core/DolphinWX/Src/ISOProperties.cpp b/Source/Core/DolphinWX/Src/ISOProperties.cpp
index ff370944a5..fbf3cf1e9f 100644
--- a/Source/Core/DolphinWX/Src/ISOProperties.cpp
+++ b/Source/Core/DolphinWX/Src/ISOProperties.cpp
@@ -139,10 +139,8 @@ CISOProperties::CISOProperties(const std::string fileName, wxWindow* parent, wxW
CISOProperties::~CISOProperties()
{
- if (pFileSystem)
- delete pFileSystem;
- if (OpenISO)
- delete OpenISO;
+ delete pFileSystem;
+ delete OpenISO;
}
void CISOProperties::CreateDirectoryTree(wxTreeItemId& parent,
diff --git a/Source/Plugins/Plugin_Wiimote/Src/main.cpp b/Source/Plugins/Plugin_Wiimote/Src/main.cpp
index 1a8479b1b6..17f738067d 100644
--- a/Source/Plugins/Plugin_Wiimote/Src/main.cpp
+++ b/Source/Plugins/Plugin_Wiimote/Src/main.cpp
@@ -161,10 +161,8 @@ void DllConfig(HWND _hParent)
frame = new ConfigDialog(&win);
g_FrameOpen = true;
- /* We don't need to use ShowModal() anymore becaue FreeLibrary() is not called after this function
- anymore */
- //frame->ShowModal();
- frame->Show();
+
+ frame->ShowModal();
#ifdef _WIN32
win.SetHWND(0);