summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Bessent <lost.dragonist@gmail.com>2021-12-07 06:46:28 -0700
committerChris Bessent <lost.dragonist@gmail.com>2021-12-07 06:46:28 -0700
commitb5efa60db9274ac1040fa266375816b7a73fb52b (patch)
tree2e96324064a7a039ace6451bc9323158fde1aaa8
parentd82f196aa561c88eb6275b1e1f8046628d9383a3 (diff)
Fix optional access on profiles dialog
-rw-r--r--src/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index a2cc74dd..35d614b4 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -2210,7 +2210,7 @@ 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 (refreshProfiles(true, profilesDialog.selectedProfile().value()) && !profilesDialog.failed()) {
+ if (refreshProfiles(true, profilesDialog.selectedProfile().value_or("")) && !profilesDialog.failed()) {
break;
}
}