diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-10-01 10:42:14 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-10-01 10:42:14 +0200 |
commit | 64bcdd08fda0251a146c521d6852b438181e9b98 (patch) | |
tree | 06c4bfd3fc75ceb60f96a7d3d7476d90e598f756 | |
parent | Merge commit 'refs/merge-requests/1654' of git://gitorious.org/rekonq/mainlin... (diff) | |
download | rekonq-64bcdd08fda0251a146c521d6852b438181e9b98.tar.xz |
Faster Application::icon
-rw-r--r-- | src/application.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/application.cpp b/src/application.cpp index 9b7d175f..269a81af 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -230,15 +230,10 @@ SessionManager *Application::sessionManager() KIcon Application::icon(const KUrl &url) { - KIcon icon; if(url.isEmpty()) - { - icon = KIcon("text-html"); - } - else - { - icon = KIcon(QWebSettings::iconForUrl(url)); - } + return KIcon("text-html"); + + KIcon icon = KIcon(QWebSettings::iconForUrl(url)); if (icon.isNull()) { icon = KIcon("text-html"); |