diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-10-16 23:06:15 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-10-16 23:06:15 +0200 |
commit | 6a4ade533d7d06df7465ed59930e1af80937210d (patch) | |
tree | e5a3ba23ffdee9f08207b0dffa5ed9f5f17ce91a /src | |
parent | Merge commit 'refs/merge-requests/1826' of git://gitorious.org/rekonq/mainlin... (diff) | |
parent | show icons corresponding to homepage pages on tabs (diff) | |
download | rekonq-6a4ade533d7d06df7465ed59930e1af80937210d.tar.xz |
Merge commit 'refs/merge-requests/1827' of git://gitorious.org/rekonq/mainline into MagicNoon4
Diffstat (limited to 'src')
-rw-r--r-- | src/application.cpp | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/application.cpp b/src/application.cpp index a492f61f..69acf2f2 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -243,13 +243,22 @@ 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 + { + // means it is the urlbar + if(url.isEmpty() && Application::instance()->mainWindow()->currentTab()->url().scheme() == "rekonq") + return KIcon("arrow-right"); + if(url == KUrl("rekonq:allTabs")) + return KIcon("tab-duplicate"); + if(url == KUrl("rekonq:history")) + return KIcon("view-history"); + if(url == KUrl("rekonq:bookmarks")) + return KIcon("bookmarks"); + if(url == KUrl("rekonq:home") || url == KUrl("rekonq:favorites")) + return KIcon("emblem-favorite"); + } + if(url.isEmpty()) return KIcon("text-html"); |