diff --git a/src/plasma/private/svg_p.h b/src/plasma/private/svg_p.h --- a/src/plasma/private/svg_p.h +++ b/src/plasma/private/svg_p.h @@ -103,6 +103,7 @@ QHash localRectCache; QHash elementsWithSizeHints; SharedSvgRenderer::Ptr renderer; + QString requestedPath; QString themePath; QString path; QSizeF size; diff --git a/src/plasma/svg.cpp b/src/plasma/svg.cpp --- a/src/plasma/svg.cpp +++ b/src/plasma/svg.cpp @@ -182,6 +182,12 @@ bool SvgPrivate::setImagePath(const QString &imagePath) { + if (requestedPath == imagePath) { + return false; + } + + requestedPath = imagePath; + QString actualPath = imagePath; if (imagePath.startsWith(QLatin1String("file://"))) { //length of file://