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
6
svg.cpp
6
svg.cpp
@ -258,6 +258,9 @@ class SvgPrivate
|
|||||||
|
|
||||||
if (path.isEmpty()) {
|
if (path.isEmpty()) {
|
||||||
path = Plasma::Theme::defaultTheme()->imagePath(themePath);
|
path = Plasma::Theme::defaultTheme()->imagePath(themePath);
|
||||||
|
if (path.isEmpty()) {
|
||||||
|
kWarning() << "No image path found for" << themePath;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -271,6 +274,9 @@ class SvgPrivate
|
|||||||
//kDebug() << "gots us an existing one!";
|
//kDebug() << "gots us an existing one!";
|
||||||
renderer = it.value();
|
renderer = it.value();
|
||||||
} else {
|
} else {
|
||||||
|
if (path.isEmpty())
|
||||||
|
renderer = new SharedSvgRenderer();
|
||||||
|
else
|
||||||
renderer = new SharedSvgRenderer(path);
|
renderer = new SharedSvgRenderer(path);
|
||||||
s_renderers[path] = renderer;
|
s_renderers[path] = renderer;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user