diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-06-16 01:59:32 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-06-16 01:59:32 +0200 |
commit | c42ebaaead8bc7494ada6d84108ba228b5145210 (patch) | |
tree | e0267fb48f2653c03985aa058ea93ad6a72dc274 | |
parent | This commit changes rekonq behavior on "closed tabs" management. (diff) | |
download | rekonq-c42ebaaead8bc7494ada6d84108ba228b5145210.tar.xz |
Saving preview on ok loadFinished..
No more waiting a lot for previews & basically all previews available
of the visited sites (nice for the urlbar..)
-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); + } } |