diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-08-10 15:14:50 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-08-10 15:14:50 +0200 |
commit | aa34e511fceac0451de3d03319d9caa320c2ccb6 (patch) | |
tree | 08772d0fd8aa7349c279e021c811961712da5a7a /src/mainview.cpp | |
parent | Removing unuseful QUrl class from guessUrlFromString method (diff) | |
download | rekonq-aa34e511fceac0451de3d03319d9caa320c2ccb6.tar.xz |
Fixing bug 203156, about stop/reload switch on tab switching.
Anyway, the fix seems quite "hackish" to me.
Perhaps someone else will think something better..
BUG: 203156
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r-- | src/mainview.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index 5b08e17a..b8d063b8 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -327,6 +327,12 @@ void MainView::slotCurrentChanged(int index) currentUrlBar()->setUrl(webView->url()); emit showStatusBarMessage(webView->lastStatusBarText()); + // notify UI to eventually switch stop/reload button + if(currentUrlBar()->isLoading()) + emit browserTabLoading(true); + else + emit browserTabLoading(false); + // set focus to the current webview webView->setFocus(); } @@ -541,7 +547,7 @@ void MainView::webViewLoadStarted() } } - emit browserLoading(true); + emit browserTabLoading(true); if (index != currentIndex()) return; @@ -564,7 +570,7 @@ void MainView::webViewLoadFinished(bool ok) } webViewIconChanged(); - emit browserLoading(false); + emit browserTabLoading(false); // don't display messages for background tabs if (index != currentIndex()) |