summaryrefslogtreecommitdiff
path: root/src/rekonqpage/previewselectorbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-03-16 01:45:50 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-03-16 01:45:50 +0100
commitc4a3ac8eb53f109a3da1f53f279fc86edcb92597 (patch)
tree8ef689aac509629d33fce88c6b2ad31e8837285f /src/rekonqpage/previewselectorbar.cpp
parentMerge commit 'refs/merge-requests/104' of git://gitorious.org/rekonq/mainline... (diff)
downloadrekonq-c4a3ac8eb53f109a3da1f53f279fc86edcb92597.tar.xz
First bunch of fixes for the NewTabPage + WebSnap chain.
It seems clear (to me) that they leaks memory, so they urgently need fixes. And a complete redesign. This is just a first (the easiest) part of it: - Removed some unuseful methods, - Added some documentation for the WebSnap class - Cleaned code, in general
Diffstat (limited to 'src/rekonqpage/previewselectorbar.cpp')
-rw-r--r--src/rekonqpage/previewselectorbar.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rekonqpage/previewselectorbar.cpp b/src/rekonqpage/previewselectorbar.cpp
index d7676e3c..924a5439 100644
--- a/src/rekonqpage/previewselectorbar.cpp
+++ b/src/rekonqpage/previewselectorbar.cpp
@@ -119,10 +119,10 @@ void PreviewSelectorBar::clicked()
if(page)
{
- KUrl url = page->mainFrame()->url();
-
- WebSnap::savePreview(WebSnap::renderPreview(*page), url);
+ // this is done just lo let the render process being faster..
+ WebSnap::renderPreview(*page);
+ KUrl url = page->mainFrame()->url();
QStringList names = ReKonfig::previewNames();
QStringList urls = ReKonfig::previewUrls();