diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-04-17 14:24:35 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-04-17 14:24:35 +0200 |
commit | 969eb157c5343eae7efefb7e48a843c4ec2180b8 (patch) | |
tree | ad72287f116b7902a81bbbe1d413aa7d3fe453dc /src | |
parent | Forgotted webkit icon added ;) (diff) | |
download | rekonq-969eb157c5343eae7efefb7e48a843c4ec2180b8.tar.xz |
set (Untitled) to untitled pages..
Diffstat (limited to 'src')
-rw-r--r-- | src/mainview.cpp | 13 | ||||
-rw-r--r-- | src/mainwindow.cpp | 3 |
2 files changed, 12 insertions, 4 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index 185d0a41..49fa237b 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -560,15 +560,22 @@ void MainView::webViewIconChanged() void MainView::webViewTitleChanged(const QString &title) { + QString tabTitle = title; + if(title.isEmpty()) + { + tabTitle = i18n("(Untitled)"); + } WebView *webView = qobject_cast<WebView*>(sender()); int index = webViewIndex(webView); if (-1 != index) { - setTabText(index, title); + setTabText(index, tabTitle); } if (currentIndex() == index) - emit setCurrentTitle(title); - Application::historyManager()->updateHistoryItem(webView->url(), title); + { + emit setCurrentTitle(tabTitle); + } + Application::historyManager()->updateHistoryItem(webView->url(), tabTitle); } diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 809a209e..b68a6ad1 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -840,4 +840,5 @@ bool MainWindow::queryClose() } return true; -}
\ No newline at end of file +} +
\ No newline at end of file |