Update SettingsWindow.cpp
This commit is contained in:
parent
62bd1c1b47
commit
b6f226b51f
|
@ -636,12 +636,9 @@ void CSettingsWindow::LoadSettings()
|
|||
AddRunItem(NameCmd.first, NameCmd.second);
|
||||
}
|
||||
|
||||
if (ui.cmbDefault->count() != theAPI->GetAllBoxes().size())
|
||||
{
|
||||
ui.cmbDefault->clear();
|
||||
foreach(const CSandBoxPtr & pBox, theAPI->GetAllBoxes())
|
||||
ui.cmbDefault->addItem(pBox->GetName().replace("_", " "), pBox->GetName());
|
||||
}
|
||||
int pos = ui.cmbDefault->findData(theAPI->GetGlobalSettings()->GetText("DefaultBox", "DefaultBox"));
|
||||
if(pos == -1)
|
||||
pos = ui.cmbDefault->findData("DefaultBox");
|
||||
|
|
Loading…
Reference in New Issue