From 167c9c556147cc70ea0ccc8d1095903be52d4630 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 15 Jan 2012 11:07:18 +0100 Subject: 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 --- src/mainview.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mainview.cpp') 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()) -- cgit v1.2.1