mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-07 00:28:56 +00:00
ConfigControl fix: Add invalid index check to ConfigComplexChoice. Resolve with a default index that can be set.
If more control is needed, it could be changed to allow multiple states to point to the same index.
This commit is contained in:
parent
896b4bb1fa
commit
e5608c6ca5
3 changed files with 15 additions and 4 deletions
|
@ -54,10 +54,9 @@ void AudioPane::CreateWidgets()
|
|||
m_dsp_combo->Add(tr("HLE (recommended)"), true, true);
|
||||
m_dsp_combo->Add(tr("LLE Recompiler (slow)"), false, true);
|
||||
m_dsp_combo->Add(tr("LLE Interpreter (very slow)"), false, false);
|
||||
// The state true/false shouldn't normally happen, but is HLE (index 0) when it does.
|
||||
m_dsp_combo->SetDefault(0);
|
||||
m_dsp_combo->Refresh();
|
||||
// The state true/false shouldn't normally happen and forces no option to be selected.
|
||||
if (m_dsp_combo->currentIndex() == -1)
|
||||
m_dsp_combo->setCurrentIndex(0);
|
||||
|
||||
dsp_layout->addWidget(dsp_combo_label);
|
||||
dsp_layout->addWidget(m_dsp_combo, Qt::AlignLeft);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue