diff options
Diffstat (limited to 'src/tabwindow/tabwindow.cpp')
-rw-r--r-- | src/tabwindow/tabwindow.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/tabwindow/tabwindow.cpp b/src/tabwindow/tabwindow.cpp index 99c4aa40..5b295981 100644 --- a/src/tabwindow/tabwindow.cpp +++ b/src/tabwindow/tabwindow.cpp @@ -262,9 +262,7 @@ void TabWindow::tabTitleChanged(const QString &title) if (!tab) return; - bool emptyTitle = title.isEmpty(); - - QString tabTitle = emptyTitle ? tab->url().url() : title; + QString tabTitle = title.isEmpty() ? tab->title() : title; tabTitle.replace('&', "&&"); int index = indexOf(tab); @@ -275,14 +273,11 @@ void TabWindow::tabTitleChanged(const QString &title) if (currentIndex() != index) { - if (!emptyTitle) - tabBar()->setTabHighlighted(index, true); + tabBar()->setTabHighlighted(index, true); } else { - emptyTitle - ? setWindowTitle(QL1S("rekonq")) - : setWindowTitle(tabTitle + QL1S(" - rekonq")); + setWindowTitle(tabTitle + QL1S(" - rekonq")); } } |