From dedb1cbb2eaba735a3a3a477b9c8e9154a9e94f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sun, 22 Sep 2024 11:13:03 +0200 Subject: [PATCH] Use QLOG_ERROR when 7z fails to load --- compressed_archive/compressed_archive.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compressed_archive/compressed_archive.cpp b/compressed_archive/compressed_archive.cpp index db78019f..2962eba7 100644 --- a/compressed_archive/compressed_archive.cpp +++ b/compressed_archive/compressed_archive.cpp @@ -15,6 +15,8 @@ #include "7z_includes.h" #include "lib7zip/CPP/Common/MyInitGuid.h" +#include "QsLog.h" + #define _MY_WINAPI WINAPI typedef quint32(_MY_WINAPI *CreateObjectFunc)(const GUID *clsID, const GUID *interfaceID, void **outObject); @@ -180,7 +182,7 @@ bool CompressedArchive::loadFunctions() } if (!sevenzLib->load()) { - qDebug() << "Error Loading 7z.dll : " + sevenzLib->errorString() << Qt::endl; + QLOG_ERROR() << "Error Loading 7z.dll : " + sevenzLib->errorString() << Qt::endl; QCoreApplication::exit(700); // TODO yacreader_global can't be used here, it is GUI dependant, YACReader::SevenZNotFound return false; } else {