summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-08-10 15:14:50 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-08-10 15:14:50 +0200
commitaa34e511fceac0451de3d03319d9caa320c2ccb6 (patch)
tree08772d0fd8aa7349c279e021c811961712da5a7a /src/mainview.cpp
parentRemoving unuseful QUrl class from guessUrlFromString method (diff)
downloadrekonq-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.cpp10
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())