From ea5a0371a36b3fc01c84c3a57c8895c7b552e8d4 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 20 Aug 2022 15:47:07 +0200 Subject: [PATCH] Gui: [skip ci] fix UTF-8 handling of icon resources --- src/Gui/BitmapFactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/BitmapFactory.cpp b/src/Gui/BitmapFactory.cpp index d8fecc9cf5..0d9519c109 100644 --- a/src/Gui/BitmapFactory.cpp +++ b/src/Gui/BitmapFactory.cpp @@ -204,7 +204,7 @@ bool BitmapFactoryInst::findPixmapInCache(const char* name, QPixmap& px) const QIcon BitmapFactoryInst::iconFromTheme(const char* name, const QIcon& fallback) { - QString iconName = QString::fromLatin1(name); + QString iconName = QString::fromUtf8(name); QIcon icon = QIcon::fromTheme(iconName, fallback); if (icon.isNull()) { QPixmap px = pixmap(name);