summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-08-27 00:08:16 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-08-27 00:08:16 +0200
commit30a2a486bff5230fb97f3d6d0cf93f43308bb4bc (patch)
tree8efbfa914e3016dfdb15b52a445111e1f8fed638 /src/application.cpp
parentNo more need for CTRL+M shortcut (diff)
downloadrekonq-30a2a486bff5230fb97f3d6d0cf93f43308bb4bc.tar.xz
Some fixes icon related
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp10
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");