From 1d1a6867589a8e71755624e1e9d9e8b95a5a1156 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 19 Jul 2011 23:00:41 +0200 Subject: Calm down kDebug messages --- src/webpage.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'src/webpage.cpp') diff --git a/src/webpage.cpp b/src/webpage.cpp index 35c1eb54..93e41944 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -399,7 +399,6 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) // handle protocols WebKit cannot handle... if(_protHandler.postHandling(reply->request(), mainFrame())) { - kDebug() << "POST HANDLING the unsupported..."; return; } @@ -429,8 +428,6 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) if(appService.isNull()) // no service can handle this. We can just download it.. { - kDebug() << "no service can handle this. We can just download it.."; - isLocal ? KMessageBox::sorry(view(), i18n("No service can handle this file.")) : downloadReply(reply, _suggestedFileName); @@ -447,7 +444,6 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) switch(dlg.askEmbedOrSave()) { case KParts::BrowserOpenOrSaveQuestion::Save: - kDebug() << "user choice: no services, just download!"; downloadReply(reply, _suggestedFileName); return; @@ -470,7 +466,6 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) tempFile.open(); KUrl destUrl; destUrl.setPath(tempFile.fileName()); - kDebug() << "First save content to" << destUrl; KIO::Job *job = KIO::file_copy(_loadingUrl, destUrl, 0600, KIO::Overwrite); job->ui()->setWindow(rApp->mainWindow()); connect(job, SIGNAL(result(KJob *)), this, SLOT(copyToTempFileResult(KJob*))); @@ -481,8 +476,6 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) KParts::ReadOnlyPart *pa = KMimeTypeTrader::createPartInstanceFromQuery(_mimeType, view(), this, QString()); if(pa) { - kDebug() << "EMBEDDING CONTENT..."; - _isOnRekonqPage = true; WebView *view = qobject_cast(parent()); @@ -522,7 +515,6 @@ void WebPage::loadFinished(bool ok) val = group.readEntry(_loadingUrl.host(), QString("10")); int value = val.toInt(); - kDebug() << "ZOOM VALUE: " << _loadingUrl.host() << value; mainFrame()->setZoomFactor(QVariant(value).toReal() / 10); // Don't allox max +1 values // Provide site icon. Can this be moved to loadStarted?? @@ -552,11 +544,7 @@ void WebPage::manageNetworkErrors(QNetworkReply *reply) QWebFrame* frame = qobject_cast(reply->request().originatingObject()); const bool isMainFrameRequest = (frame == mainFrame()); - const bool isUrlFrameLoading = (_loadingUrl == frame->url()); - kDebug() << "FRAME URL : " << frame->url(); - kDebug() << "IS MAIN FRAME? " << isMainFrameRequest; - kDebug() << "LOADING URL: " << _loadingUrl; - kDebug() << "IS URL FRAME LOADING " << isUrlFrameLoading; + //const bool isUrlFrameLoading = (_loadingUrl == frame->url()); if(isMainFrameRequest && _sslInfo.isValid() @@ -575,8 +563,6 @@ void WebPage::manageNetworkErrors(QNetworkReply *reply) case QNetworkReply::NoError: // no error. Simple :) if(isMainFrameRequest && !_sslInfo.isValid()) { - kDebug() << " ---------------------------- "; - kDebug() << "Setting SSL INFOS per URL = " << reply->url(); // Obtain and set the SSL information if any... _sslInfo.restoreFrom(reply->attribute(static_cast(KIO::AccessManager::MetaData)), reply->url()); _sslInfo.setUrl(reply->url()); -- cgit v1.2.1