From 65ee5a1d361245a34c5c4a11a6341080e6c40900 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Fri, 14 Aug 2015 23:50:31 -0700 Subject: [PATCH] DolphinWX: Finish removing bandaid from 704f787 --- Source/Core/DolphinWX/TASInputDlg.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/Source/Core/DolphinWX/TASInputDlg.cpp b/Source/Core/DolphinWX/TASInputDlg.cpp index 042aa2673c..20df71ecf2 100644 --- a/Source/Core/DolphinWX/TASInputDlg.cpp +++ b/Source/Core/DolphinWX/TASInputDlg.cpp @@ -208,7 +208,6 @@ void TASInputDlg::FinishLayout() Bind(wxEVT_CLOSE_WINDOW, &TASInputDlg::OnCloseWindow, this); Bind(GCPAD_UPDATE_CALLBACK, &TASInputDlg::GetValuesCallback, this); Bind(WIIMOTE_UPDATE_CALLBACK, &TASInputDlg::GetValuesCallback, this); - Bind(wxEVT_TEXT, &TASInputDlg::UpdateFromText, this); m_has_layout = true; } @@ -508,22 +507,14 @@ void TASInputDlg::SetSliderValue(Control* control, int CurrentValue) { control->value = CurrentValue; control->set_by_keyboard = true; - control->text->ChangeValue(std::to_string(CurrentValue)); + control->text->SetValue(std::to_string(CurrentValue)); } else if (control->set_by_keyboard) { control->value = control->default_value; control->set_by_keyboard = false; - control->text->ChangeValue(std::to_string(control->default_value)); + control->text->SetValue(std::to_string(control->default_value)); } - else - { - return; - } - - wxCommandEvent* evt = new wxCommandEvent(wxEVT_TEXT, control->text_id); - evt->SetEventObject(control->text); - wxQueueEvent(this, evt); } void TASInputDlg::SetButtonValue(Button* button, bool CurrentState)