diff --git a/components/misc/scalableicon.cpp b/components/misc/scalableicon.cpp index 0b30eaf2ab..b3f4304557 100644 --- a/components/misc/scalableicon.cpp +++ b/components/misc/scalableicon.cpp @@ -36,7 +36,12 @@ namespace Misc return QIcon(); QFile iconFile(fileName); - iconFile.open(QIODevice::ReadOnly); + if (!iconFile.open(QIODevice::ReadOnly)) + { + qDebug() << "Failed to open icon file:" << fileName; + return QIcon(); + } + auto content = iconFile.readAll(); if (!content.startsWith("