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