Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #514 from jordan-woyak/input-diag-win-crash
Fix InputConfigDiag crash on Windows. (GCode issue 7384)
  • Loading branch information
Parlane committed Jun 20, 2014
2 parents d62ae92 + 7ecc32f commit 91502b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/Core/DolphinWX/InputConfigDiag.cpp
Expand Up @@ -512,8 +512,8 @@ void ControlDialog::DetectControl(wxCommandEvent& event)
{
btn->SetLabel(_("[ waiting ]"));

// apparently, this makes the "waiting" text work on Linux
wxTheApp->Yield();
// This makes the "waiting" text work on Linux. true (only if needed) prevents crash on Windows
wxTheApp->Yield(true);

std::lock_guard<std::recursive_mutex> lk(m_plugin.controls_lock);
Device::Control* const ctrl = control_reference->Detect(DETECT_WAIT_TIME, dev);
Expand All @@ -536,8 +536,8 @@ void GamepadPage::DetectControl(wxCommandEvent& event)
{
btn->SetLabel(_("[ waiting ]"));

// apparently, this makes the "waiting" text work on Linux
wxTheApp->Yield();
// This makes the "waiting" text work on Linux. true (only if needed) prevents crash on Windows
wxTheApp->Yield(true);

std::lock_guard<std::recursive_mutex> lk(m_plugin.controls_lock);
Device::Control* const ctrl = btn->control_reference->Detect(DETECT_WAIT_TIME, dev);
Expand Down

0 comments on commit 91502b4

Please sign in to comment.