From 8ff29ebe05a099f96791e3f0a2e9c30e41c2b69e Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Thu, 28 Jun 2018 01:26:15 +0200 Subject: [PATCH] Normalize define naming --- chatterino.pro | 4 ++-- src/main.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/chatterino.pro b/chatterino.pro index 489697723..a4a629877 100644 --- a/chatterino.pro +++ b/chatterino.pro @@ -20,7 +20,7 @@ CONFIG += precompile_header useBreakpad { LIBS += -L$$PWD/lib/qBreakpad/handler/build include(lib/qBreakpad/qBreakpad.pri) - DEFINES += CHATTERINO_USE_BREAKPAD + DEFINES += C_USE_BREAKPAD } # https://bugreports.qt.io/browse/QTBUG-27018 @@ -450,4 +450,4 @@ win32-msvc* { linux { QMAKE_LFLAGS += -lrt -} \ No newline at end of file +} diff --git a/src/main.cpp b/src/main.cpp index 6848d702e..cd1a19483 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -23,7 +23,7 @@ #include #endif -#ifdef CHATTERINO_USE_BREAKPAD +#ifdef C_USE_BREAKPAD #include #endif @@ -87,7 +87,7 @@ int runGui(QApplication &a, int argc, char *argv[]) app->construct(); -#ifdef CHATTERINO_USE_BREAKPAD +#ifdef C_USE_BREAKPAD QBreakpadInstance.setDumpPath(app->paths->settingsFolderPath + "/Crashes"); #endif @@ -96,7 +96,7 @@ int runGui(QApplication &a, int argc, char *argv[]) auto runningPath = pathMan.miscDirectory + "/running_" + pathMan.applicationFilePathHash; if (QFile::exists(runningPath)) { -#ifndef DISABLE_CRASH_DIALOG +#ifndef C_DISABLE_CRASH_DIALOG chatterino::LastRunCrashDialog dialog; switch (dialog.exec()) {