diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-09-17 00:42:55 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-09-17 00:42:55 +0200 |
commit | 596d75fa61f58f489a898ce1918ee04170dbcf6a (patch) | |
tree | 58051bd873d88f4896c2c84e24a20071a721d877 /src/newtabpage.cpp | |
parent | Merge commit 'refs/merge-requests/2295' of git://gitorious.org/rekonq/mainline (diff) | |
parent | Websnaps: change the image path to use base64. (diff) | |
download | rekonq-596d75fa61f58f489a898ce1918ee04170dbcf6a.tar.xz |
Merge commit 'refs/merge-requests/211' of git://gitorious.org/rekonq/mainline into m211
Diffstat (limited to 'src/newtabpage.cpp')
-rw-r--r-- | src/newtabpage.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/newtabpage.cpp b/src/newtabpage.cpp index e579e7b9..f5c9c186 100644 --- a/src/newtabpage.cpp +++ b/src/newtabpage.cpp @@ -238,7 +238,7 @@ QWebElement NewTabPage::loadingPreview(int index, const KUrl &url) // 2) to "auto-destroy" snaps on tab closing :) QWebFrame *frame = qobject_cast<QWebFrame *>(parent()); WebSnap *snap = new WebSnap(url, frame); - connect(snap, SIGNAL(snapDone(bool)), frame->page(), SLOT(updateImage(bool))); + connect(snap, SIGNAL(snapDone(bool)), frame->page(), SLOT(updateImage(bool)), Qt::UniqueConnection); return prev; } @@ -247,7 +247,6 @@ QWebElement NewTabPage::validPreview(int index, const KUrl &url, const QString & { QWebElement prev = markup(".thumbnail"); QString previewPath = QL1S("file://") + WebSnap::imagePathFromUrl(url); - QString iString = QVariant(index).toString(); prev.findFirst(".preview img").setAttribute("src" , previewPath); prev.findFirst("a").setAttribute("href", url.toMimeDataString()); // NOTE ? @@ -256,7 +255,6 @@ QWebElement NewTabPage::validPreview(int index, const KUrl &url, const QString & setupPreview(prev, index); showControls(prev); - return prev; } |