summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Bessent <lost.dragonist@gmail.com>2021-04-29 01:56:52 -0700
committerGitHub <noreply@github.com>2021-04-29 01:56:52 -0700
commit7df5329ea09569ef49cd48678e361c54be993de1 (patch)
tree395a28838d5b807e0617c2daf0797cc576a31b2b /src
parent40a4bf1e3a25d98da481c6807e327f036a9a33e6 (diff)
parent8308dfcbffdb4487e1282ecc5499332af2f784c8 (diff)
Merge pull request #1497 from LostDragonist/profile_fix
Fix selecting the profile in the dialog
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index bc9a3ce6..e998dd56 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -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;
}