summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLostDragonist <lost.dragonist@gmail.com>2018-08-12 19:59:54 -0500
committerLostDragonist <lost.dragonist@gmail.com>2018-08-12 19:59:54 -0500
commit17e4ec7b13e6df86cc473b78d8e44d37b2e80cf7 (patch)
tree1baac49332343e5561ddb8648b23b01187a164ea /src
parent9a426a2474700b3e3e858b3299d8a60bca58f8c7 (diff)
Fix selecting the active profile when opening the profiles dialog
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp3
1 files changed, 1 insertions, 2 deletions
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