From aa44561e86b6520ee0ab10a58db52b6fdd77d991 Mon Sep 17 00:00:00 2001 From: Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> Date: Sun, 11 Jan 2026 17:31:26 +0100 Subject: Change IOrganizer::profile return type to a shared_ptr (#2322) --- src/mainwindow.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index cd74165e..5d5a88ce 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1802,14 +1802,14 @@ void MainWindow::on_profileBox_currentIndexChanged(int index) auto saveGames = m_OrganizerCore.gameFeatures().gameFeature(); if (saveGames != nullptr) { - if (saveGames->prepareProfile(m_OrganizerCore.currentProfile())) { + if (saveGames->prepareProfile(m_OrganizerCore.currentProfile().get())) { m_SavesTab->refreshSaveList(); } } auto invalidation = m_OrganizerCore.gameFeatures().gameFeature(); if (invalidation != nullptr) { - if (invalidation->prepareProfile(m_OrganizerCore.currentProfile())) { + if (invalidation->prepareProfile(m_OrganizerCore.currentProfile().get())) { QTimer::singleShot(5, [this] { m_OrganizerCore.refresh(); }); @@ -2048,7 +2048,8 @@ void MainWindow::checkBSAList() ui->bsaList->blockSignals(false); }); - QStringList defaultArchives = archives->archives(m_OrganizerCore.currentProfile()); + QStringList defaultArchives = + archives->archives(m_OrganizerCore.currentProfile().get()); bool warning = false; @@ -2400,14 +2401,14 @@ void MainWindow::on_actionAdd_Profile_triggered() auto saveGames = m_OrganizerCore.gameFeatures().gameFeature(); if (saveGames != nullptr) { - if (saveGames->prepareProfile(m_OrganizerCore.currentProfile())) { + if (saveGames->prepareProfile(m_OrganizerCore.currentProfile().get())) { m_SavesTab->refreshSaveList(); } } auto invalidation = m_OrganizerCore.gameFeatures().gameFeature(); if (invalidation != nullptr) { - if (invalidation->prepareProfile(m_OrganizerCore.currentProfile())) { + if (invalidation->prepareProfile(m_OrganizerCore.currentProfile().get())) { QTimer::singleShot(5, [this] { m_OrganizerCore.refresh(); }); -- cgit v1.3.1