summaryrefslogtreecommitdiff
path: root/src/iconmanager.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-10-22 00:04:47 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-10-22 00:10:28 +0200
commit7c981aa978bea7551aec99bc3c68a23cd6c8df00 (patch)
tree4db8b374676927afe7915a0cc034b477beeb3ebf /src/iconmanager.cpp
parentThis commit fixes icons handling for "rekonq pages" (eg: about urls). (diff)
downloadrekonq-7c981aa978bea7551aec99bc3c68a23cd6c8df00.tar.xz
This commit implements the new private browsign mode for rekonq:
- it implements a new KAaction in the Application class to trace changes on - stops session management and save it, restoring last visited sites on restoring mormal mode - implements necessary changes to iconmanager, urlbar & application Please, note that the private browsing mode will definitely work just on KDE SC 4.6, cause of the needed changes in kdewebkit to eg handle cookies and so on.. . Hope you like it :)
Diffstat (limited to 'src/iconmanager.cpp')
-rw-r--r--src/iconmanager.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/iconmanager.cpp b/src/iconmanager.cpp
index 5086c59d..f5b60ea6 100644
--- a/src/iconmanager.cpp
+++ b/src/iconmanager.cpp
@@ -65,10 +65,6 @@ KIcon IconManager::iconForUrl(const KUrl &url)
// first things first.. avoid infinite loop at startup
if (url.isEmpty() || Application::instance()->mainWindowList().isEmpty())
return KIcon("text-html");
-
- // no icons in private browsing..
- if(QWebSettings::globalSettings()->testAttribute(QWebSettings::PrivateBrowsingEnabled))
- return KIcon("view-media-artist");
QByteArray encodedUrl = url.toEncoded();
// rekonq icons..
@@ -114,7 +110,7 @@ void IconManager::provideIcon(QWebPage *page, const KUrl &url, bool notify)
return;
}
- // no icons in private browsing..
+ // do not load new icons in private browsing..
if(QWebSettings::globalSettings()->testAttribute(QWebSettings::PrivateBrowsingEnabled))
{
kDebug() << "Private browsing, private icon...";