diff options
| author | Al <26797547+Al12rs@users.noreply.github.com> | 2020-09-27 17:05:13 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-27 17:05:13 -0700 |
| commit | 154d83e479baecf8c0c670c6b8d5d72e3c2299d1 (patch) | |
| tree | 176c869fe053368bff992f40a6839caa028dc995 /src/mainwindow.cpp | |
| parent | 9dbf4d7820963dd61cf6fad1abbe7b3962ea922e (diff) | |
| parent | 718e71854e01332f4a31d9961f5597b521bb994f (diff) | |
Merge pull request #1243 from Holt59/absolute-path-ini-files
Allow absolute path for ini files.
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index fb71eca3..a20dfd06 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1887,10 +1887,7 @@ QDir MainWindow::currentSavesDir() const return m_OrganizerCore.managedGame()->savesDirectory(); } - QString iniPath = m_OrganizerCore.currentProfile()->localSettingsEnabled() - ? m_OrganizerCore.currentProfile()->absolutePath() - : m_OrganizerCore.managedGame()->documentsDirectory().absolutePath(); - iniPath += "/" + iniFiles[0]; + QString iniPath = m_OrganizerCore.currentProfile()->absoluteIniFilePath(iniFiles[0]); wchar_t path[MAX_PATH]; if (::GetPrivateProfileStringW( |
