diff options
| author | Matthieu Gicquel <matthieu@bureau.home> | 2009-10-10 14:46:47 +0200 | 
|---|---|---|
| committer | Matthieu Gicquel <matthieu@bureau.home> | 2009-10-10 14:46:47 +0200 | 
| commit | 2a95521e3f6821e20247f1ad90871726550e8fd2 (patch) | |
| tree | 98f2ec16e7f04aa34af21f6233f639a2bd87168d | |
| parent | clear urlbar when HomePage is shown (diff) | |
| download | rekonq-2a95521e3f6821e20247f1ad90871726550e8fd2.tar.xz | |
KIcon("go-home") for homepage
| -rw-r--r-- | src/application.cpp | 9 | 
1 files changed, 8 insertions, 1 deletions
| diff --git a/src/application.cpp b/src/application.cpp index e3c06a5b..b5d2d292 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -229,9 +229,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(url.isEmpty())          return KIcon("text-html"); - +          KIcon icon = KIcon(QWebSettings::iconForUrl(url));      if (icon.isNull())      { | 
