1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

BrowserWindow: Always set "private" property to browser window

Set this property also when private mode is disabled
This commit is contained in:
David Rosca 2014-09-17 16:19:27 +02:00
parent b8c5f6f75d
commit 8c8789a05f

View File

@ -108,7 +108,6 @@ static QKeySequence actionShortcut(QKeySequence shortcut, QKeySequence fallBack,
} }
} }
BrowserWindow::BrowserWindow(Qz::BrowserWindowType type, const QUrl &startUrl) BrowserWindow::BrowserWindow(Qz::BrowserWindowType type, const QUrl &startUrl)
: QMainWindow(0) : QMainWindow(0)
, m_startUrl(startUrl) , m_startUrl(startUrl)
@ -122,10 +121,7 @@ BrowserWindow::BrowserWindow(Qz::BrowserWindowType type, const QUrl &startUrl)
setObjectName("mainwindow"); setObjectName("mainwindow");
setAttribute(Qt::WA_DeleteOnClose); setAttribute(Qt::WA_DeleteOnClose);
setWindowTitle(tr("QupZilla")); setWindowTitle(tr("QupZilla"));
setProperty("private", mApp->isPrivate());
if (mApp->isPrivate()) {
setProperty("private", QVariant(true));
}
setupUi(); setupUi();
setupMenu(); setupMenu();