From 8c8789a05f94f27470d85088eda31b2e3f39e1f1 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Wed, 17 Sep 2014 16:19:27 +0200 Subject: [PATCH] BrowserWindow: Always set "private" property to browser window Set this property also when private mode is disabled --- src/lib/app/browserwindow.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/lib/app/browserwindow.cpp b/src/lib/app/browserwindow.cpp index 651e9d80d..e14ea9b2d 100644 --- a/src/lib/app/browserwindow.cpp +++ b/src/lib/app/browserwindow.cpp @@ -108,7 +108,6 @@ static QKeySequence actionShortcut(QKeySequence shortcut, QKeySequence fallBack, } } - BrowserWindow::BrowserWindow(Qz::BrowserWindowType type, const QUrl &startUrl) : QMainWindow(0) , m_startUrl(startUrl) @@ -122,10 +121,7 @@ BrowserWindow::BrowserWindow(Qz::BrowserWindowType type, const QUrl &startUrl) setObjectName("mainwindow"); setAttribute(Qt::WA_DeleteOnClose); setWindowTitle(tr("QupZilla")); - - if (mApp->isPrivate()) { - setProperty("private", QVariant(true)); - } + setProperty("private", mApp->isPrivate()); setupUi(); setupMenu();