QuiteRSS: workaround a crash on quit

This commit is contained in:
Sergei Reznikov
2018-10-02 15:18:29 +03:00
parent ef7d5621ae
commit abae0c4769
2 changed files with 33 additions and 1 deletions

View 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