From 4b24758d7230504daedc3d537f233f02244641bb Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 1 Aug 2012 11:35:06 +0200 Subject: Clean up WebWindow inserting the WebTab there. --- src/tabwindow/tabwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tabwindow/tabwindow.cpp') diff --git a/src/tabwindow/tabwindow.cpp b/src/tabwindow/tabwindow.cpp index cce684cf..3e479bdf 100644 --- a/src/tabwindow/tabwindow.cpp +++ b/src/tabwindow/tabwindow.cpp @@ -285,7 +285,7 @@ void TabWindow::tabTitleChanged(const QString &title) bool emptyTitle = title.isEmpty(); - QString tabTitle = emptyTitle ? tab->url().toString() : title; + QString tabTitle = emptyTitle ? tab->url().url() : title; tabTitle.replace('&', "&&"); int index = indexOf(tab); @@ -405,7 +405,7 @@ void TabWindow::closeTab(int index, bool del) const int recentlyClosedTabsLimit = 8; TabHistory history(tabToClose->page()->history()); history.title = tabToClose->title(); - history.url = tabToClose->url().toString(); + history.url = tabToClose->url().url(); m_recentlyClosedTabs.removeAll(history); if (m_recentlyClosedTabs.count() == recentlyClosedTabsLimit) -- cgit v1.2.1