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, 2 insertions, 2 deletions
diff --git a/src/rekonqpage/newtabpage.cpp b/src/rekonqpage/newtabpage.cpp
index 95b15ed9..7a373f62 100644
--- a/src/rekonqpage/newtabpage.cpp
+++ b/src/rekonqpage/newtabpage.cpp
@@ -39,6 +39,7 @@
#include "mainview.h"
#include "websnap.h"
#include "previewselectorbar.h"
+#include "webtab.h"
// KDE Includes
#include <KStandardDirs>
@@ -87,8 +88,7 @@ void NewTabPage::generate(KUrl url)
if(url.directory() == QString("preview/modify"))
{
int index = url.fileName().toInt();
- Application::instance()->mainWindow()->findChild<PreviewSelectorBar *>()
- ->enable(index, qobject_cast< WebPage* >(m_root.webFrame()->page()));
+ Application::instance()->mainWindow()->currentTab()->createPreviewSelectorBar(index);
return;
}
}