summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}