summaryrefslogtreecommitdiff
path: root/src/urlbar
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-09-25 18:02:23 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:05 +0100
commit02d9b5fe590303e540c1ff9111e0cfe3194f7e7d (patch)
treef2515238feb6593efc89621805046cca4d24b968 /src/urlbar
parentDon't overwrite downloads by default (diff)
downloadrekonq-02d9b5fe590303e540c1ff9111e0cfe3194f7e7d.tar.xz
New Private Browsing mode :D
Diffstat (limited to 'src/urlbar')
-rw-r--r--src/urlbar/urlbar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp
index db24188b..56d1370d 100644
--- a/src/urlbar/urlbar.cpp
+++ b/src/urlbar/urlbar.cpp
@@ -213,7 +213,7 @@ void UrlBar::paintEvent(QPaintEvent *event)
QColor backgroundColor;
QColor foregroundColor;
- if (QWebSettings::globalSettings()->testAttribute(QWebSettings::PrivateBrowsingEnabled))
+ if (_tab->page()->settings()->testAttribute(QWebSettings::PrivateBrowsingEnabled))
{
backgroundColor = QColor(220, 220, 220); // light gray
foregroundColor = Qt::black;
@@ -651,7 +651,7 @@ void UrlBar::suggest()
void UrlBar::refreshFavicon()
{
- if (QWebSettings::globalSettings()->testAttribute(QWebSettings::PrivateBrowsingEnabled))
+ if (_tab->page()->settings()->testAttribute(QWebSettings::PrivateBrowsingEnabled))
{
_icon->setIcon(KIcon("view-media-artist"));
return;