summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 0de4ea40..1965e321 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -494,7 +494,9 @@ void MainView::closeTab(int index, bool del)
return;
}
- if (!tab->url().isEmpty())
+ if (!tab->url().isEmpty()
+ && !QWebSettings::globalSettings()->testAttribute(QWebSettings::PrivateBrowsingEnabled)
+ )
{
QString title = tab->view()->title();
QString url = tab->url().prettyUrl();