if the name is empty, don't even bother, and spew and error
svn path=/trunk/KDE/kdelibs/; revision=969912
This commit is contained in:
parent
652694c5fd
commit
3984fdb402
@ -437,8 +437,9 @@ QString Theme::themeName() const
|
||||
QString Theme::imagePath(const QString &name) const
|
||||
{
|
||||
// look for a compressed svg file in the theme
|
||||
if (name.contains("../")) {
|
||||
if (name.contains("../") || name.isEmpty()) {
|
||||
// we don't support relative paths
|
||||
kDebug() << "Theme says: bad image path " << name;
|
||||
return QString();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user