From 240900de39aaf1562332ed88708b4b128703ad0e Mon Sep 17 00:00:00 2001 From: Eran Mizrahi Date: Tue, 12 Dec 2017 23:22:04 +0200 Subject: Move crash dumps to instance-dependant data folder --- src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index eed4dfd3..b4faf570 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -528,8 +528,6 @@ int runApplication(MOApplication &application, SingleInstance &instance, int main(int argc, char *argv[]) { - prevUnhandledExceptionFilter = SetUnhandledExceptionFilter(MyUnhandledExceptionFilter); - MOApplication application(argc, argv); QStringList arguments = application.arguments(); @@ -586,6 +584,9 @@ int main(int argc, char *argv[]) } application.setProperty("dataPath", dataPath); + // initialize dump collection only after "dataPath" since the crashes are stored under it + prevUnhandledExceptionFilter = SetUnhandledExceptionFilter(MyUnhandledExceptionFilter); + LogBuffer::init(100, QtDebugMsg, qApp->property("dataPath").toString() + "/logs/mo_interface.log"); QString splash = dataPath + "/splash.png"; -- cgit v1.3.1