summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-01 10:42:14 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-10-01 10:42:14 +0200
commit64bcdd08fda0251a146c521d6852b438181e9b98 (patch)
tree06c4bfd3fc75ceb60f96a7d3d7476d90e598f756
parentMerge commit 'refs/merge-requests/1654' of git://gitorious.org/rekonq/mainlin... (diff)
downloadrekonq-64bcdd08fda0251a146c521d6852b438181e9b98.tar.xz
Faster Application::icon
-rw-r--r--src/application.cpp11
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");