diff options
| author | Chris Bessent <lost.dragonist@gmail.com> | 2021-12-07 06:46:28 -0700 |
|---|---|---|
| committer | Chris Bessent <lost.dragonist@gmail.com> | 2021-12-07 06:46:28 -0700 |
| commit | b5efa60db9274ac1040fa266375816b7a73fb52b (patch) | |
| tree | 2e96324064a7a039ace6451bc9323158fde1aaa8 /src | |
| parent | d82f196aa561c88eb6275b1e1f8046628d9383a3 (diff) | |
Fix optional access on profiles dialog
Diffstat (limited to 'src')
| -rw-r--r-- | src/mainwindow.cpp | 2 |
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; } } |
