mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-03 05:28:53 +02:00
58 lines
1.3 KiB
Plaintext
58 lines
1.3 KiB
Plaintext
From fe04f0617bbc82466a473718b1643ea7e0548bf6 Mon Sep 17 00:00:00 2001
|
|
From: Nikolay Korotkiy <sikmir@gmail.com>
|
|
Date: Tue, 29 Jan 2019 03:17:45 +0300
|
|
Subject: Fix APP_NAME
|
|
|
|
|
|
diff --git a/src/GUI/app.cpp b/src/GUI/app.cpp
|
|
index 6f62d88..a642ca1 100644
|
|
--- a/src/GUI/app.cpp
|
|
+++ b/src/GUI/app.cpp
|
|
@@ -21,7 +21,7 @@
|
|
|
|
App::App(int &argc, char **argv) : QApplication(argc, argv)
|
|
{
|
|
-#if defined(Q_OS_WIN32) || defined(Q_OS_MAC)
|
|
+#if defined(Q_OS_WIN32) || defined(Q_OS_MAC) || defined(Q_OS_HAIKU)
|
|
setApplicationName(APP_NAME);
|
|
#else
|
|
setApplicationName(QString(APP_NAME).toLower());
|
|
--
|
|
2.19.1
|
|
|
|
|
|
From 15b7e94410b3e5e6707e8e252c3ad56df63e80c6 Mon Sep 17 00:00:00 2001
|
|
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
|
Date: Tue, 29 Jan 2019 13:24:49 +0300
|
|
Subject: Dirty hack for fix crash on exit
|
|
|
|
|
|
diff --git a/src/GUI/app.cpp b/src/GUI/app.cpp
|
|
index a642ca1..250855a 100644
|
|
--- a/src/GUI/app.cpp
|
|
+++ b/src/GUI/app.cpp
|
|
@@ -18,6 +18,9 @@
|
|
#include "settings.h"
|
|
#include "app.h"
|
|
|
|
+#include <unistd.h>
|
|
+#include <sys/types.h>
|
|
+#include <signal.h>
|
|
|
|
App::App(int &argc, char **argv) : QApplication(argc, argv)
|
|
{
|
|
@@ -82,7 +85,9 @@ int App::run()
|
|
for (int i = 1; i < args.count(); i++)
|
|
_gui->openFile(args.at(i));
|
|
|
|
- return exec();
|
|
+ exec();
|
|
+ kill(::getpid(), SIGKILL);
|
|
+ return 0;
|
|
}
|
|
|
|
bool App::event(QEvent *event)
|
|
--
|
|
2.19.1
|
|
|