A precise warning about a missing icon is much easier to parse than

QFSFileEngine::open: No file name specified.

Approved by notmart (which is better than "not approved by mart" ;-)

svn path=/trunk/KDE/kdelibs/; revision=918255
This commit is contained in:
David Faure 2009-01-29 18:16:05 +00:00
parent 21c11b6ed9
commit 457f6c8c90

View File

@ -258,6 +258,9 @@ class SvgPrivate
if (path.isEmpty()) {
path = Plasma::Theme::defaultTheme()->imagePath(themePath);
if (path.isEmpty()) {
kWarning() << "No image path found for" << themePath;
}
}
}
@ -271,7 +274,10 @@ class SvgPrivate
//kDebug() << "gots us an existing one!";
renderer = it.value();
} else {
renderer = new SharedSvgRenderer(path);
if (path.isEmpty())
renderer = new SharedSvgRenderer();
else
renderer = new SharedSvgRenderer(path);
s_renderers[path] = renderer;
}