Fixed #7161 (GUI: Do not lose [Default] label after editing an application)

This commit is contained in:
Aleksandr Pikalev 2015-11-28 21:39:48 +01:00 committed by Daniel Marjamäki
parent 8bb8290a6f
commit e8decd925b
1 changed files with 4 additions and 1 deletions

View File

@ -236,7 +236,10 @@ void SettingsDialog::EditApplication()
ApplicationDialog dialog(tr("Modify an application"), app, this); ApplicationDialog dialog(tr("Modify an application"), app, this);
if (dialog.exec() == QDialog::Accepted) { if (dialog.exec() == QDialog::Accepted) {
item->setText(app.getName()); QString name = app.getName();
if (mTempApplications->GetDefaultApplication() == row)
name += tr(" [Default]");
item->setText(name);
} }
} }
} }