mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
32 lines
891 B
Plaintext
32 lines
891 B
Plaintext
From 38d78bb149104ad44a0fd70dfd4dd34061d0c96a Mon Sep 17 00:00:00 2001
|
|
From: Sergei Reznikov <diver@gelios.net>
|
|
Date: Tue, 2 Oct 2018 15:12:39 +0300
|
|
Subject: Workaround for a crash on quit
|
|
|
|
|
|
diff --git a/src/application/logfile.cpp b/src/application/logfile.cpp
|
|
index 04c9c13..03711b7 100644
|
|
--- a/src/application/logfile.cpp
|
|
+++ b/src/application/logfile.cpp
|
|
@@ -36,7 +36,8 @@ void LogFile::msgHandler(QtMsgType type, const QMessageLogContext &, const QStri
|
|
if (!mainApp->dataDirInitialized())
|
|
return;
|
|
|
|
- QFile file;
|
|
+}
|
|
+/* QFile file;
|
|
file.setFileName(mainApp->dataDir() + "/debug.log");
|
|
QIODevice::OpenMode openMode = QIODevice::WriteOnly | QIODevice::Text;
|
|
|
|
@@ -74,6 +75,7 @@ void LogFile::msgHandler(QtMsgType type, const QMessageLogContext &, const QStri
|
|
file.close();
|
|
}
|
|
}
|
|
+*/
|
|
#else
|
|
void LogFile::msgHandler(QtMsgType type, const char *msg)
|
|
{
|
|
--
|
|
2.19.0
|
|
|