summaryrefslogtreecommitdiff
path: root/src/organizercore.cpp
diff options
context:
space:
mode:
authorJeremy Rimpo <jeremy.rimpo@servermonkey.com>2017-12-12 15:43:21 -0600
committerGitHub <noreply@github.com>2017-12-12 15:43:21 -0600
commit2226a483d1415a315d7b558b0e2dc9919dfa858b (patch)
tree8b4a258adbc1df8b0bbaa9b2e4d2b617cd8f1cfb /src/organizercore.cpp
parent361e59e40d7e955eaaaa1cf4dd4f407a5ca7cdef (diff)
parent240900de39aaf1562332ed88708b4b128703ad0e (diff)
Merge pull request #144 from erasmux/crash_fixes
Crash dumps fixes
Diffstat (limited to 'src/organizercore.cpp')
-rw-r--r--src/organizercore.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp
index bc0578b3..deb0b718 100644
--- a/src/organizercore.cpp
+++ b/src/organizercore.cpp
@@ -670,11 +670,10 @@ void OrganizerCore::setGlobalCrashDumpsType(int crashDumpsType) {
//static
std::wstring OrganizerCore::crashDumpsPath() {
- wchar_t appDataLocal[MAX_PATH]{ 0 };
- ::SHGetFolderPathW(NULL, CSIDL_LOCAL_APPDATA, NULL, 0, appDataLocal);
- std::wstring dumpPath{ appDataLocal };
- dumpPath += L"\\modorganizer\\crashDumps";
- return dumpPath;
+ return (
+ qApp->property("dataPath").toString() + "/"
+ + QString::fromStdWString(AppConfig::dumpsDir())
+ ).toStdWString();
}
void OrganizerCore::setCurrentProfile(const QString &profileName)