From 46866f6fa2c39cef03b93ab6dbf2525b63c2bf08 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Mon, 13 Apr 2026 20:22:31 -0500 Subject: [PATCH] DolphinQt/Resources: ERROR_LOG instead of ASSERT when LoadNamedIcon fails. --- Source/Core/DolphinQt/Resources.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt/Resources.cpp b/Source/Core/DolphinQt/Resources.cpp index b32d7ac7ac..89f0c0a46c 100644 --- a/Source/Core/DolphinQt/Resources.cpp +++ b/Source/Core/DolphinQt/Resources.cpp @@ -8,8 +8,8 @@ #include #include -#include "Common/Assert.h" #include "Common/FileUtil.h" +#include "Common/Logging/Log.h" #include "Core/Config/MainSettings.h" @@ -48,7 +48,10 @@ QIcon Resources::LoadNamedIcon(std::string_view name, const QString& dir) for (auto scale : {1, 2, 4}) load_png(scale); - ASSERT(icon.availableSizes().size() > 0); + if (icon.isNull()) + { + ERROR_LOG_FMT(COMMON, "LoadNamedIcon: \"{}\" could not be loaded.", name); + } return icon; }