summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-11-15 23:12:41 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:06 +0100
commitd078cd5b18bbccfe6102ca04141e1ebc01083acf (patch)
tree8ba61fcac11b080aaf141a38a4bafae39caec927
parentFix close action when some web apps are running (diff)
downloadrekonq-d078cd5b18bbccfe6102ca04141e1ebc01083acf.tar.xz
Fix tabwindow title when webwindow one is empty
(no more "rekonq - rekonq")
-rw-r--r--src/tabwindow/tabwindow.cpp3
-rw-r--r--src/webtab/webtab.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/tabwindow/tabwindow.cpp b/src/tabwindow/tabwindow.cpp
index 12c0aaa8..4925f8d9 100644
--- a/src/tabwindow/tabwindow.cpp
+++ b/src/tabwindow/tabwindow.cpp
@@ -282,7 +282,8 @@ void TabWindow::currentChanged(int newIndex)
return;
QString t = tab->title();
- (t.isEmpty())
+
+ (t.isEmpty() || t == QL1S("rekonq"))
? setWindowTitle(QL1S("rekonq"))
: setWindowTitle(t + QL1S(" - rekonq"));
diff --git a/src/webtab/webtab.cpp b/src/webtab/webtab.cpp
index bb616770..510177e6 100644
--- a/src/webtab/webtab.cpp
+++ b/src/webtab/webtab.cpp
@@ -145,6 +145,7 @@ WebWindow *WebTab::webWindow()
return w;
}
+
KUrl WebTab::url()
{
if (page() && page()->isOnRekonqPage())
@@ -408,7 +409,6 @@ void WebTab::zoomDefault()
void WebTab::webAppTitleChanged(QString title)
{
-
if (title.isEmpty())
setWindowTitle(i18n("rekonq"));
else