mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
Append .exe to crashreporter path so it is better located
This commit is contained in:
parent
440b31986a
commit
e4a0222954
1 changed files with 9 additions and 2 deletions
|
@ -263,8 +263,15 @@ Application::Application(int &argc, char **argv)
|
|||
return;
|
||||
|
||||
#if defined(WITH_CRASHREPORTER)
|
||||
if (ConfigFile().crashReporter())
|
||||
_crashHandler.reset(new CrashReporter::Handler(QDir::tempPath(), true, CRASHREPORTER_EXECUTABLE));
|
||||
if (ConfigFile().crashReporter()) {
|
||||
auto reporter = QStringLiteral(CRASHREPORTER_EXECUTABLE);
|
||||
#ifdef Q_OS_WIN
|
||||
if (reporter.endsWith(QLatin1String(".exe"))) {
|
||||
reporter.append(QLatin1String(".exe"));
|
||||
}
|
||||
#endif
|
||||
_crashHandler.reset(new CrashReporter::Handler(QDir::tempPath(), true, reporter));
|
||||
}
|
||||
#endif
|
||||
|
||||
setupLogging();
|
||||
|
|
Loading…
Reference in a new issue