Fix bug setting current launcher profile on startup (Bug #2188)

moveref
scrawl 10 years ago committed by Marc Zinnschlag
parent 9ef6e95bf6
commit ed66bbb28d

@ -238,10 +238,8 @@ void Launcher::DataFilesPage::addProfile (const QString &profile, bool setAsCurr
if (profile.isEmpty()) if (profile.isEmpty())
return; return;
if (ui.profilesComboBox->findText (profile) != -1) if (ui.profilesComboBox->findText (profile) == -1)
return; ui.profilesComboBox->addItem (profile);
ui.profilesComboBox->addItem (profile);
if (setAsCurrent) if (setAsCurrent)
setProfile (ui.profilesComboBox->findText (profile), false); setProfile (ui.profilesComboBox->findText (profile), false);

Loading…
Cancel
Save