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:
parent
21c11b6ed9
commit
457f6c8c90
8
svg.cpp
8
svg.cpp
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user