summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Config/ConfigMain.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2015-03-18 19:23:11 -0400
committerLioncash <mathew1800@gmail.com>2015-03-18 22:48:03 -0400
commitfebd3909c6be90ad289a3a8f934fdb4bea70c5fa (patch)
treee07849db47eedd3e9b75741dbc085939f4822793 /Source/Core/DolphinWX/Config/ConfigMain.cpp
parent086ec7a9b7982509c43cefaeb884e2bc37350b62 (diff)
DolphinWX: Eliminate remnants of the event table in ConfigMain
Diffstat (limited to 'Source/Core/DolphinWX/Config/ConfigMain.cpp')
-rw-r--r--Source/Core/DolphinWX/Config/ConfigMain.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/Source/Core/DolphinWX/Config/ConfigMain.cpp b/Source/Core/DolphinWX/Config/ConfigMain.cpp
index 5b0a15e78b..334ef7df97 100644
--- a/Source/Core/DolphinWX/Config/ConfigMain.cpp
+++ b/Source/Core/DolphinWX/Config/ConfigMain.cpp
@@ -19,13 +19,6 @@
#include "DolphinWX/Config/PathConfigPane.h"
#include "DolphinWX/Config/WiiConfigPane.h"
-BEGIN_EVENT_TABLE(CConfigMain, wxDialog)
-
-EVT_CLOSE(CConfigMain::OnClose)
-EVT_BUTTON(wxID_OK, CConfigMain::OnOk)
-
-END_EVENT_TABLE()
-
CConfigMain::CConfigMain(wxWindow* parent, wxWindowID id, const wxString& title,
const wxPoint& position, const wxSize& size, long style)
: wxDialog(parent, id, title, position, size, style)
@@ -33,6 +26,9 @@ CConfigMain::CConfigMain(wxWindow* parent, wxWindowID id, const wxString& title,
// Control refreshing of the ISOs list
bRefreshList = false;
+ Bind(wxEVT_CLOSE_WINDOW, &CConfigMain::OnClose, this);
+ Bind(wxEVT_BUTTON, &CConfigMain::OnOk, this, wxID_OK);
+
CreateGUIControls();
}