summaryrefslogtreecommitdiff
path: root/databases/redisdesktopmanager/files/patch-src_main.cpp
blob: d1136bf61563c3fb121678802028f6c9f4d79259 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--- src/main.cpp.orig	2018-09-22 00:04:41 UTC
+++ src/main.cpp
@@ -5,9 +5,7 @@
 #include "app/app.h"
 #include "modules/crashhandler/crashhandler.h"
 
-#ifdef LINUX_SIGNALS
 #include <sigwatch.h>
-#endif
 
 int main(int argc, char *argv[])
 {           
@@ -15,23 +13,14 @@ int main(int argc, char *argv[])
     QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
 #endif
 
-    #ifndef QT_DEBUG
-    QFileInfo appPath(QString::fromLocal8Bit(argv[0]));
-    QString appDir(appPath.absoluteDir().path());
-    QString crashReporterPath = QString("%1/crashreporter").arg(appDir.isEmpty() ? "." : appDir);
-    CrashHandler::instance()->Init(QDir::homePath(), appPath.absoluteFilePath(), crashReporterPath);
-    #endif
-
     Application a(argc, argv);
     a.initModels();
     a.initQml();
 
-    #ifdef LINUX_SIGNALS
     UnixSignalWatcher sigwatch;
     sigwatch.watchForSignal(SIGINT);
     sigwatch.watchForSignal(SIGTERM);
     QObject::connect(&sigwatch, SIGNAL(unixSignal(int)), &a, SLOT(quit()));
-    #endif
 
     return a.exec();
 }