Add define to disable the crash dialog

This commit is contained in:
Rasmus Karlsson 2018-04-22 20:48:00 +02:00
parent e23ce31e05
commit 7e5a182d50

View file

@ -82,8 +82,10 @@ int runGui(int argc, char *argv[])
auto runningPath = pathMan.settingsFolderPath + "/running_" + pathMan.appPathHash; auto runningPath = pathMan.settingsFolderPath + "/running_" + pathMan.appPathHash;
if (QFile::exists(runningPath)) { if (QFile::exists(runningPath)) {
#ifndef DISABLE_CRASH_DIALOG
chatterino::widgets::LastRunCrashDialog dialog; chatterino::widgets::LastRunCrashDialog dialog;
dialog.exec(); dialog.exec();
#endif
} else { } else {
QFile runningFile(runningPath); QFile runningFile(runningPath);