summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index fb71eca3..9a6b83d1 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1887,10 +1887,10 @@ QDir MainWindow::currentSavesDir() const
return m_OrganizerCore.managedGame()->savesDirectory();
}
- QString iniPath = m_OrganizerCore.currentProfile()->localSettingsEnabled()
+ QDir iniDir = m_OrganizerCore.currentProfile()->localSettingsEnabled()
? m_OrganizerCore.currentProfile()->absolutePath()
: m_OrganizerCore.managedGame()->documentsDirectory().absolutePath();
- iniPath += "/" + iniFiles[0];
+ QString iniPath = iniDir.absoluteFilePath(iniFiles[0]);
wchar_t path[MAX_PATH];
if (::GetPrivateProfileStringW(