mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
QuiteRSS: workaround a crash on quit
This commit is contained in:
31
net-news/quiterss/patches/quiterss-0.18.12.patchset
Normal file
31
net-news/quiterss/patches/quiterss-0.18.12.patchset
Normal file
@@ -0,0 +1,31 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user