From 3984fdb402c2f379e2ffccd8489d1c06b683779b Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Tue, 19 May 2009 08:53:56 +0000 Subject: [PATCH] if the name is empty, don't even bother, and spew and error svn path=/trunk/KDE/kdelibs/; revision=969912 --- theme.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/theme.cpp b/theme.cpp index 981872dfb..4717ada30 100644 --- a/theme.cpp +++ b/theme.cpp @@ -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(); }