From b5efa60db9274ac1040fa266375816b7a73fb52b Mon Sep 17 00:00:00 2001 From: Chris Bessent Date: Tue, 7 Dec 2021 06:46:28 -0700 Subject: Fix optional access on profiles dialog --- src/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mainwindow.cpp') 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; } } -- cgit v1.3.1