diff --git a/src/gui/image/qicon.cpp b/src/gui/image/qicon.cpp index a3cb5d32f14..30ce69c24ea 100644 --- a/src/gui/image/qicon.cpp +++ b/src/gui/image/qicon.cpp @@ -1172,6 +1172,9 @@ void QIcon::addFile(const QString &fileName, const QSize &size, Mode mode, State if (!alreadyAdded) d->engine->addFile(fileName, size, mode, state); + if (d->engine->key() == "svg"_L1) // not needed and also not supported + return; + // Check if a "@Nx" file exists and add it. QString atNxFileName = qt_findAtNxFile(fileName, qApp->devicePixelRatio()); if (atNxFileName != fileName)