Merge pull request #1497 from LostDragonist/profile_fix

Fix selecting the profile in the dialog
This commit is contained in:
Chris Bessent
2021-04-29 01:56:52 -07:00
committed by GitHub
+9
View File
@@ -2148,6 +2148,15 @@ void MainWindow::on_actionAdd_Profile_triggered()
profilesDialog.exec();
m_SavesTab->refreshSaveList(); // since the save list may now be outdated we have to refresh it completely
if (profilesDialog.selectedProfile())
{
// Change profile while blocking signals to prevent extra signals being sent
// Doesn't matter much as refreshProfiles() is being called after this
ui->profileBox->blockSignals(true);
ui->profileBox->setCurrentText(profilesDialog.selectedProfile().value());
ui->profileBox->blockSignals(false);
}
if (refreshProfiles() && !profilesDialog.failed()) {
break;
}