From 43ad900245dc6cf90157de9b0a5da36932e13651 Mon Sep 17 00:00:00 2001 From: Uyanide Date: Sun, 1 Mar 2026 00:10:10 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20qCFatal=20is=20only=20ava?= =?UTF-8?q?ilable=20since=206.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WallReel/Core/logger.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/WallReel/Core/logger.cpp b/WallReel/Core/logger.cpp index 451ffc8..699bcb9 100644 --- a/WallReel/Core/logger.cpp +++ b/WallReel/Core/logger.cpp @@ -122,7 +122,11 @@ void WallReel::Core::Logger::critical(const QString& sender, const QString& msg) } void WallReel::Core::Logger::fatal(const QString& sender, const QString& msg) { +#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0) qCFatal(logMain) << QString("[%1] %2").arg(sender, msg); +#else + qCCritical(logMain) << QString("[%1] %2").arg(sender, msg); +#endif } // No fatal because qCFatal does not exist before Qt 6.5