From b42ddba13c93ad16eb2993fc7af25c53d867f35d Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Mon, 28 Mar 2016 17:46:03 +0200 Subject: [PATCH] onepad: repopulate option at the init CID 159402 --- plugins/onepad/Linux/GamepadConfiguration.cpp | 2 ++ plugins/onepad/Linux/GamepadConfiguration.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/onepad/Linux/GamepadConfiguration.cpp b/plugins/onepad/Linux/GamepadConfiguration.cpp index 473fe6e189..52573d744a 100644 --- a/plugins/onepad/Linux/GamepadConfiguration.cpp +++ b/plugins/onepad/Linux/GamepadConfiguration.cpp @@ -139,6 +139,8 @@ GamepadConfiguration::GamepadConfiguration(int pad, wxWindow *parent) : wxFrame( wxCommandEventHandler(GamepadConfiguration::OnCheckboxChange) ); #endif + + repopulate(); } /** diff --git a/plugins/onepad/Linux/GamepadConfiguration.h b/plugins/onepad/Linux/GamepadConfiguration.h index b2c4331d3e..21b2e5737a 100644 --- a/plugins/onepad/Linux/GamepadConfiguration.h +++ b/plugins/onepad/Linux/GamepadConfiguration.h @@ -38,7 +38,7 @@ class GamepadConfiguration : public wxFrame wxCheckBox *m_cb_rumble, *m_cb_hack_sixaxis_usb, *m_cb_hack_sixaxis_pressure; wxSlider *m_sl_rumble_intensity, *m_sl_joystick_sensibility; wxButton *m_bt_ok, *m_bt_cancel; - wxStaticText *m_lbl_rumble_intensity, *m_lbl_joystick_sensibility; + wxStaticText *m_lbl_rumble_intensity; int m_pad_id; u32 m_init_rumble_intensity, m_init_joystick_sensibility;