diff --git a/src/plasma/private/svg_p.h b/src/plasma/private/svg_p.h index f2922fafb..1ad666f30 100644 --- a/src/plasma/private/svg_p.h +++ b/src/plasma/private/svg_p.h @@ -103,6 +103,7 @@ public: 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 index f7020f7c6..33bb94975 100644 --- a/src/plasma/svg.cpp +++ b/src/plasma/svg.cpp @@ -182,6 +182,12 @@ QString SvgPrivate::cachePath(const QString &path, const QSize &size) const bool SvgPrivate::setImagePath(const QString &imagePath) { + if (requestedPath == imagePath) { + return false; + } + + requestedPath = imagePath; + QString actualPath = imagePath; if (imagePath.startsWith(QLatin1String("file://"))) { //length of file://