From b7f444c22b7132ccb8090ecc5a63fa364730b068 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 20 Sep 2011 10:14:05 +0200 Subject: QtWebKit 2.2 related fixes We now have to consider progress finished when it reaches 100, NOT when it is reset to 0, as before... --- src/webtab.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/webtab.cpp') diff --git a/src/webtab.cpp b/src/webtab.cpp index 1eba22a1..9b1a31f9 100644 --- a/src/webtab.cpp +++ b/src/webtab.cpp @@ -85,7 +85,6 @@ WebTab::WebTab(QWidget *parent) } connect(m_webView, SIGNAL(loadProgress(int)), this, SLOT(updateProgress(int))); - connect(m_webView, SIGNAL(loadFinished(bool)), this, SLOT(loadFinished(bool))); connect(m_webView, SIGNAL(titleChanged(const QString &)), this, SIGNAL(titleChanged(const QString &))); // Session Manager @@ -120,15 +119,9 @@ void WebTab::updateProgress(int p) } -void WebTab::loadFinished(bool) -{ - m_progress = 0; -} - - bool WebTab::isPageLoading() { - return m_progress != 0; + return m_progress != 0 && m_progress != 100; } -- cgit v1.2.1