From 457f6c8c900934c9798634ae42b7130826aab374 Mon Sep 17 00:00:00 2001 From: David Faure Date: Thu, 29 Jan 2009 18:16:05 +0000 Subject: [PATCH] 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 --- svg.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/svg.cpp b/svg.cpp index c7c1008b0..b3f867a44 100644 --- a/svg.cpp +++ b/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; }