diff options
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/application.cpp b/src/application.cpp index 35d52a23..8e1740fc 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -187,7 +187,15 @@ BookmarkProvider *Application::bookmarkProvider() KIcon Application::icon(const KUrl &url) { - KIcon icon = KIcon(QWebSettings::iconForUrl(url)); + KIcon icon; + if(url.isEmpty()) + { + icon = KIcon("text-html"); + } + else + { + icon = KIcon(QWebSettings::iconForUrl(url)); + } if (icon.isNull()) { icon = KIcon("text-html"); |