GUI: If application list contains applications select the first by default.

This commit is contained in:
Kimmo Varis 2009-06-08 16:58:26 +03:00
parent 7ac73e0d25
commit f146ce1aae
1 changed files with 7 additions and 1 deletions

View File

@ -275,6 +275,12 @@ void SettingsDialog::PopulateListWidget()
{
mListWidget->addItem(mTempApplications.GetApplicationName(i));
}
// If list contains items select first item
if (mTempApplications.GetApplicationCount())
{
mListWidget->setCurrentRow(0);
}
}
void SettingsDialog::Ok()