Skip to content

Commit

Permalink
Fix optional access on profiles dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
LostDragonist committed Dec 7, 2021
1 parent d82f196 commit b5efa60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit b5efa60

Please sign in to comment.