diff options
author | Furkan Uzumcu <furkanuzumcu@gmail.com> | 2011-11-20 18:11:07 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-11-20 18:11:07 +0100 |
commit | 59edc2a28dd46a75dab0166901ec6e13ccef5941 (patch) | |
tree | a7657903fb169244912d16b09996fdd997660943 /src | |
parent | Use title instead of URL when adding application shortcuts (diff) | |
download | rekonq-59edc2a28dd46a75dab0166901ec6e13ccef5941.tar.xz |
Clean up MainView::webViewUrlChanged() code
REVIEW:102818
REVIEWED-BY: adjam
Diffstat (limited to 'src')
-rw-r--r-- | src/application.cpp | 2 | ||||
-rw-r--r-- | src/mainview.cpp | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/application.cpp b/src/application.cpp index 1b4e169e..6ef0b0c3 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -641,7 +641,7 @@ void Application::updateConfiguration() case 3: // nothing for (int i = 0; i < mainWindow()->mainView()->tabBar()->count(); i++) { - mainWindow()->mainView()->tabBar()->setTabToolTip(i, ""); + mainWindow()->mainView()->tabBar()->setTabToolTip(i, QL1S("")); } break; diff --git a/src/mainview.cpp b/src/mainview.cpp index 15c78f5a..1ad452ea 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -596,12 +596,8 @@ void MainView::webViewUrlChanged(const QUrl &url) { WebView *view = qobject_cast<WebView *>(sender()); int index = indexOf(view->parentWidget()); - if (-1 != index) - { - tabBar()->setTabData(index, url); - } if (ReKonfig::hoveringTabOption() == 2) - tabBar()->setTabToolTip(index, webTab(index)->url().toMimeDataString()); + tabBar()->setTabToolTip(index, url.toString()); } |