summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");