GUI: If application list contains applications select the first by default.
This commit is contained in:
parent
7ac73e0d25
commit
f146ce1aae
|
@ -275,6 +275,12 @@ void SettingsDialog::PopulateListWidget()
|
||||||
{
|
{
|
||||||
mListWidget->addItem(mTempApplications.GetApplicationName(i));
|
mListWidget->addItem(mTempApplications.GetApplicationName(i));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If list contains items select first item
|
||||||
|
if (mTempApplications.GetApplicationCount())
|
||||||
|
{
|
||||||
|
mListWidget->setCurrentRow(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SettingsDialog::Ok()
|
void SettingsDialog::Ok()
|
||||||
|
|
Loading…
Reference in New Issue