summaryrefslogtreecommitdiff
path: root/src/rekonqpage/newtabpage.cpp
diff options
context:
space:
mode:
authormatgic78 <matgic78@gmail.com>2009-12-31 10:53:51 +0100
committermatgic78 <matgic78@gmail.com>2010-02-06 11:22:46 +0100
commite3215b1316fa0459d4238bf5cb3c60b0bff90f73 (patch)
tree70a354c27e6fcd721c1bef70d9c8c09d2ea751e2 /src/rekonqpage/newtabpage.cpp
parentFix compilation after rebasing (diff)
downloadrekonq-e3215b1316fa0459d4238bf5cb3c60b0bff90f73.tar.xz
little changes
Diffstat (limited to 'src/rekonqpage/newtabpage.cpp')
-rw-r--r--src/rekonqpage/newtabpage.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rekonqpage/newtabpage.cpp b/src/rekonqpage/newtabpage.cpp
index c91af2dc..c8b2e916 100644
--- a/src/rekonqpage/newtabpage.cpp
+++ b/src/rekonqpage/newtabpage.cpp
@@ -84,7 +84,9 @@ void NewTabPage::generate(const KUrl &url)
}
if(url.directory() == QString("preview/modify"))
{
- PreviewChooser *pc = new PreviewChooser(url.fileName().toInt());
+ int index = url.fileName().toInt();
+ QString url = m_root.findFirst("#preview" + QVariant(index).toString() + " > a").attribute("href");
+ PreviewChooser *pc = new PreviewChooser(index, url);
connect(pc, SIGNAL(urlChoosed(int,KUrl)), SLOT(setPreview(int,KUrl)));
pc->show();
return;