From 17e4ec7b13e6df86cc473b78d8e44d37b2e80cf7 Mon Sep 17 00:00:00 2001 From: LostDragonist Date: Sun, 12 Aug 2018 19:59:54 -0500 Subject: Fix selecting the active profile when opening the profiles dialog --- src/mainwindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 7a30ccb6..11cc8c6c 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1961,8 +1961,7 @@ void MainWindow::on_actionInstallMod_triggered() void MainWindow::on_actionAdd_Profile_triggered() { for (;;) { - //Note: Calling this with an invalid profile name. Not quite sure why - ProfilesDialog profilesDialog(m_OrganizerCore.managedGame()->gameDirectory().absolutePath(), + ProfilesDialog profilesDialog(m_OrganizerCore.currentProfile()->name(), m_OrganizerCore.managedGame(), this); // workaround: need to disable monitoring of the saves directory, otherwise the active -- cgit v1.3.1