Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't disconnect loadFinished in UnsupportedContentHandler

WebPage::setContent will cause the loadFinished signal to fire, so
there's no need to call loadFinished if the signal is connected.
  • Loading branch information...
commit 2eb38b3c0235de382a754ac8d3a0d71ed7704fdf 1 parent b28452e
@mhoran mhoran authored
Showing with 0 additions and 3 deletions.
  1. +0 −3  src/UnsupportedContentHandler.cpp
View
3  src/UnsupportedContentHandler.cpp
@@ -11,16 +11,13 @@ void UnsupportedContentHandler::renderNonHtmlContent() {
QByteArray text = m_reply->readAll();
m_page->mainFrame()->setContent(text, QString("text/plain"), m_reply->url());
m_page->unsupportedContentFinishedReply(m_reply);
- m_page->loadFinished(true);
this->deleteLater();
}
void UnsupportedContentHandler::waitForReplyToFinish() {
connect(m_reply, SIGNAL(finished()), this, SLOT(replyFinished()));
- disconnect(m_page, SIGNAL(loadFinished(bool)), m_page, SLOT(loadFinished(bool)));
}
void UnsupportedContentHandler::replyFinished() {
renderNonHtmlContent();
- connect(m_page, SIGNAL(loadFinished(bool)), m_page, SLOT(loadFinished(bool)));
}
Please sign in to comment.
Something went wrong with that request. Please try again.