diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-01-15 11:07:18 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-01-15 11:07:18 +0100 |
commit | 167c9c556147cc70ea0ccc8d1095903be52d4630 (patch) | |
tree | 0e46c42b36ee7bb3402001c3f7433b205f7ef674 /src/mainview.cpp | |
parent | only make labels for viewable elements (diff) | |
download | rekonq-167c9c556147cc70ea0ccc8d1095903be52d4630.tar.xz |
Rework on load/stop/reload action
Also clean up API, giving proper names to method
updateActions --> updateHistoryActions
browserTabLoading(bool) --> currentTabStateChanged()
...
also workaround problem that m_progress is (yet) 0 or 100 when load started
REVIEW:103651
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r-- | src/mainview.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index 17cdd884..d008b277 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -264,7 +264,7 @@ void MainView::currentChanged(int index) emit showStatusBarMessage(QString()); // notify UI to eventually switch stop/reload button - emit browserTabLoading(tab->isPageLoading()); + emit currentTabStateChanged(); // set focus to the current webview if (tab->url().scheme() == QL1S("about")) @@ -518,7 +518,7 @@ void MainView::webViewLoadStarted() if (index != currentIndex()) return; - emit browserTabLoading(true); + emit currentTabStateChanged(); emit showStatusBarMessage(i18n("Loading..."), Rekonq::Info); if (view == currentWebTab()->view() && view->url().scheme() != QL1S("about")) @@ -544,7 +544,7 @@ void MainView::webViewLoadFinished(bool ok) } webViewIconChanged(); - emit browserTabLoading(false); + emit currentTabStateChanged(); // don't display messages for background tabs if (index != currentIndex()) |