diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mainwindow.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 9b95f052..420015d8 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -603,13 +603,28 @@ void MainWindow::updateActions() void MainWindow::updateWindowTitle(const QString &title) { + QWebSettings *settings = QWebSettings::globalSettings(); if (title.isEmpty()) { - setWindowTitle("rekonq"); + if(settings->testAttribute(QWebSettings::PrivateBrowsingEnabled)) + { + setWindowTitle("rekonq (" + i18n("Private Browsing") + ")"); + } + else + { + setWindowTitle("rekonq"); + } } else { - setWindowTitle(title + " - rekonq"); + if(settings->testAttribute(QWebSettings::PrivateBrowsingEnabled)) + { + setWindowTitle(title + " - rekonq (" + i18n("Private Browsing") + ")"); + } + else + { + setWindowTitle(title + " - rekonq"); + } } } |