don't break unthemed svgs if themeChanged() is called on them

(can happen if svg is color aware and colors change)

svn path=/trunk/KDE/kdelibs/; revision=1205731
This commit is contained in:
Manuel Mommertz 2010-12-12 10:39:27 +00:00
parent 8c4c8b877d
commit f924a645af

View File

@ -607,7 +607,7 @@ void SvgPrivate::themeChanged()
checkColorHints();
}
QString currentPath = themePath;
QString currentPath = themed ? themePath : path;
themePath.clear();
eraseRenderer();
setImagePath(currentPath);