diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-09-25 18:02:23 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-12-10 02:48:05 +0100 |
commit | 02d9b5fe590303e540c1ff9111e0cfe3194f7e7d (patch) | |
tree | f2515238feb6593efc89621805046cca4d24b968 /src/webtab/protocolhandler.cpp | |
parent | Don't overwrite downloads by default (diff) | |
download | rekonq-02d9b5fe590303e540c1ff9111e0cfe3194f7e7d.tar.xz |
New Private Browsing mode :D
Diffstat (limited to 'src/webtab/protocolhandler.cpp')
-rw-r--r-- | src/webtab/protocolhandler.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/webtab/protocolhandler.cpp b/src/webtab/protocolhandler.cpp index dd5527bd..26fd481a 100644 --- a/src/webtab/protocolhandler.cpp +++ b/src/webtab/protocolhandler.cpp @@ -278,6 +278,9 @@ void ProtocolHandler::showResults(const KFileItemList &list) _webwin->urlBar()->setQUrl(_url); _webwin->view()->setFocus(); + if (_frame->page()->settings()->testAttribute(QWebSettings::PrivateBrowsingEnabled)) + return; + HistoryManager::self()->addHistoryEntry(_url, _url.prettyUrl()); } } |