diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-08-27 00:08:16 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-08-27 00:08:16 +0200 |
commit | 30a2a486bff5230fb97f3d6d0cf93f43308bb4bc (patch) | |
tree | 8efbfa914e3016dfdb15b52a445111e1f8fed638 /src/application.cpp | |
parent | No more need for CTRL+M shortcut (diff) | |
download | rekonq-30a2a486bff5230fb97f3d6d0cf93f43308bb4bc.tar.xz |
Some fixes icon related
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"); |