Normalize define naming

This commit is contained in:
Rasmus Karlsson 2018-06-28 01:26:15 +02:00
parent 10df071077
commit 8ff29ebe05
2 changed files with 5 additions and 5 deletions

View file

@ -20,7 +20,7 @@ CONFIG += precompile_header
useBreakpad { useBreakpad {
LIBS += -L$$PWD/lib/qBreakpad/handler/build LIBS += -L$$PWD/lib/qBreakpad/handler/build
include(lib/qBreakpad/qBreakpad.pri) include(lib/qBreakpad/qBreakpad.pri)
DEFINES += CHATTERINO_USE_BREAKPAD DEFINES += C_USE_BREAKPAD
} }
# https://bugreports.qt.io/browse/QTBUG-27018 # https://bugreports.qt.io/browse/QTBUG-27018
@ -450,4 +450,4 @@ win32-msvc* {
linux { linux {
QMAKE_LFLAGS += -lrt QMAKE_LFLAGS += -lrt
} }

View file

@ -23,7 +23,7 @@
#include <stdio.h> #include <stdio.h>
#endif #endif
#ifdef CHATTERINO_USE_BREAKPAD #ifdef C_USE_BREAKPAD
#include <QBreakpadHandler.h> #include <QBreakpadHandler.h>
#endif #endif
@ -87,7 +87,7 @@ int runGui(QApplication &a, int argc, char *argv[])
app->construct(); app->construct();
#ifdef CHATTERINO_USE_BREAKPAD #ifdef C_USE_BREAKPAD
QBreakpadInstance.setDumpPath(app->paths->settingsFolderPath + "/Crashes"); QBreakpadInstance.setDumpPath(app->paths->settingsFolderPath + "/Crashes");
#endif #endif
@ -96,7 +96,7 @@ int runGui(QApplication &a, int argc, char *argv[])
auto runningPath = pathMan.miscDirectory + "/running_" + pathMan.applicationFilePathHash; auto runningPath = pathMan.miscDirectory + "/running_" + pathMan.applicationFilePathHash;
if (QFile::exists(runningPath)) { if (QFile::exists(runningPath)) {
#ifndef DISABLE_CRASH_DIALOG #ifndef C_DISABLE_CRASH_DIALOG
chatterino::LastRunCrashDialog dialog; chatterino::LastRunCrashDialog dialog;
switch (dialog.exec()) { switch (dialog.exec()) {