summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatgic78 <matgic78@gmail.com>2009-10-16 18:00:03 +0200
committermatgic78 <matgic78@gmail.com>2009-10-16 18:00:03 +0200
commitd9f08a7f7479720d3e76de9348c184c342c8ce21 (patch)
treee7ae7ab2bf64853a04974d374aedb10ab77c6fe3
parenti18n fixes (diff)
downloadrekonq-d9f08a7f7479720d3e76de9348c184c342c8ce21.tar.xz
arrow-right icon for urlbar when homepage shown
because this icon says (for me at least) "please type your request here"
-rw-r--r--src/application.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/application.cpp b/src/application.cpp
index a492f61f..fbe5ef43 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -243,13 +243,16 @@ SessionManager *Application::sessionManager()
KIcon Application::icon(const KUrl &url)
{
- if(url.scheme() == "rekonq" ||
- (url.isEmpty() // Urlbar is empty for homepage, but we want an icon
- && !Application::instance()->mainWindowList().isEmpty() // avoid infinite loop at startup
- && Application::instance()->mainWindow()->currentTab()->url().scheme() == "rekonq")
- )
- return KIcon("go-home");
-
+ if(!Application::instance()->mainWindowList().isEmpty()) // avoid infinite loop at startup
+ {
+ if(url.scheme() == "rekonq")
+ return KIcon("go-home");
+
+ // means it is the urlbar
+ if(url.isEmpty() && Application::instance()->mainWindow()->currentTab()->url().scheme() == "rekonq")
+ return KIcon("arrow-right");
+ }
+
if(url.isEmpty())
return KIcon("text-html");