diff options
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 3c749bf5..5908f9e4 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -84,6 +84,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include <taskprogressmanager.h>
#include <scopeguard.h>
#include <usvfs.h>
+#include "localsavegames.h"
#include <QAbstractItemDelegate>
#include <QAbstractProxyModel>
@@ -1132,6 +1133,11 @@ void MainWindow::on_profileBox_currentIndexChanged(int index) } else {
activateSelectedProfile();
}
+
+ LocalSavegames *saveGames = m_OrganizerCore.managedGame()->feature<LocalSavegames>();
+ if (saveGames != nullptr && saveGames->updateSaveGames(m_OrganizerCore.currentProfile())) {
+ refreshSaveList();
+ }
}
}
@@ -1973,6 +1979,12 @@ void MainWindow::on_actionAdd_Profile_triggered() break;
}
}
+
+ LocalSavegames *saveGames = m_OrganizerCore.managedGame()->feature<LocalSavegames>();
+ if (saveGames != nullptr && saveGames->updateSaveGames(m_OrganizerCore.currentProfile())) {
+ refreshSaveList();
+ }
+
// addProfile();
}
|
