GUI: Select the default application in app list.
This commit is contained in:
parent
166e5248db
commit
74c85b6b70
|
@ -272,10 +272,16 @@ void SettingsDialog::PopulateApplicationList()
|
||||||
mUI.mListWidget->addItem(name);
|
mUI.mListWidget->addItem(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If list contains items select first item
|
// Select default application, or if there is no default app then the
|
||||||
if (mTempApplications->GetApplicationCount())
|
// first item.
|
||||||
{
|
if (defapp == -1)
|
||||||
mUI.mListWidget->setCurrentRow(0);
|
mUI.mListWidget->setCurrentRow(0);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (mTempApplications->GetApplicationCount() > defapp)
|
||||||
|
mUI.mListWidget->setCurrentRow(defapp);
|
||||||
|
else
|
||||||
|
mUI.mListWidget->setCurrentRow(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue