Merge pull request #6071 from lioncash/inputconfig

InputConfigDiag: Fix building DolphinWX on the latest MSVC
This commit is contained in:
JosJuice 2017-09-17 11:11:37 +02:00 committed by GitHub
commit 29bfdbb36b
1 changed files with 3 additions and 2 deletions

View File

@ -348,13 +348,14 @@ void ControlDialog::UpdateGUI()
m_error_label->SetLabel(_("Syntax error")); m_error_label->SetLabel(_("Syntax error"));
break; break;
case ParseStatus::Successful: case ParseStatus::Successful:
m_error_label->SetLabel(control_reference->BoundCount() > 0 ? "" : _("Device not found")); m_error_label->SetLabel(control_reference->BoundCount() > 0 ? wxString{} :
_("Device not found"));
break; break;
case ParseStatus::EmptyExpression: case ParseStatus::EmptyExpression:
m_error_label->SetLabel(""); m_error_label->SetLabel("");
break; break;
} }
}; }
void InputConfigDialog::UpdateGUI() void InputConfigDialog::UpdateGUI()
{ {