From 5a2989d17cdcd58c6a916f1b01b6d86d3a975019 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 18 Jun 2010 18:17:36 +0200 Subject: After a brief discussion with Lionel it seemed clear this is not the best way to achieve that result :( Forwarding this problem to 1.0 release, sorry Revert "Saving preview on ok loadFinished.." This reverts commit c42ebaaead8bc7494ada6d84108ba228b5145210. --- src/webpage.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/webpage.cpp b/src/webpage.cpp index 94a4bb48..32b785b4 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -46,7 +46,6 @@ #include "networkaccessmanager.h" #include "adblockmanager.h" #include "urlbar.h" -#include "websnap.h" #include "sslinfodialog_p.h" @@ -408,6 +407,7 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) if (!isLocal) { + KParts::BrowserOpenOrSaveQuestion dlg(Application::instance()->mainWindow(), replyUrl, mimeType); if(!suggestedFileName.isEmpty()) dlg.setSuggestedFileName(suggestedFileName); @@ -466,6 +466,8 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) void WebPage::loadFinished(bool ok) { + Q_UNUSED(ok); + Application::adblockManager()->applyHidingRules(this); QStringList list = ReKonfig::walletBlackList(); @@ -477,11 +479,6 @@ void WebPage::loadFinished(bool ok) { wallet()->fillFormData(mainFrame()); } - - if(ok) - { - WebSnap::renderPreview(*this); - } } -- cgit v1.2.1