diff options
-rw-r--r-- | src/webpage.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp index 32b785b4..94a4bb48 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -46,6 +46,7 @@ #include "networkaccessmanager.h" #include "adblockmanager.h" #include "urlbar.h" +#include "websnap.h" #include "sslinfodialog_p.h" @@ -407,7 +408,6 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) if (!isLocal) { - KParts::BrowserOpenOrSaveQuestion dlg(Application::instance()->mainWindow(), replyUrl, mimeType); if(!suggestedFileName.isEmpty()) dlg.setSuggestedFileName(suggestedFileName); @@ -466,8 +466,6 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) void WebPage::loadFinished(bool ok) { - Q_UNUSED(ok); - Application::adblockManager()->applyHidingRules(this); QStringList list = ReKonfig::walletBlackList(); @@ -479,6 +477,11 @@ void WebPage::loadFinished(bool ok) { wallet()->fillFormData(mainFrame()); } + + if(ok) + { + WebSnap::renderPreview(*this); + } } |