summaryrefslogtreecommitdiff
path: root/src/rekonqpage/newtabpage.cpp
diff options
context:
space:
mode:
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;