diff options
author | matgic78 <matgic78@gmail.com> | 2009-10-16 18:00:03 +0200 |
---|---|---|
committer | matgic78 <matgic78@gmail.com> | 2009-10-16 18:00:03 +0200 |
commit | d9f08a7f7479720d3e76de9348c184c342c8ce21 (patch) | |
tree | e7ae7ab2bf64853a04974d374aedb10ab77c6fe3 /src/application.cpp | |
parent | i18n fixes (diff) | |
download | rekonq-d9f08a7f7479720d3e76de9348c184c342c8ce21.tar.xz |
arrow-right icon for urlbar when homepage shown
because this icon says (for me at least) "please type your request here"
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 17 |
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"); |