diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/newtabpage.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/newtabpage.cpp b/src/newtabpage.cpp index 894412ce..6325bc79 100644 --- a/src/newtabpage.cpp +++ b/src/newtabpage.cpp @@ -89,6 +89,8 @@ void NewTabPage::generate(const KUrl &url) QStringList names = ReKonfig::previewNames(); QStringList urls = ReKonfig::previewUrls(); + int index = urls.count(); + names.append(""); urls.append(""); @@ -97,8 +99,10 @@ void NewTabPage::generate(const KUrl &url) // Why doesn't it work well ? // m_root.appendInside(emptyPreview(names.length() - 1)); - // Replacing with this : + // Replacing with this: generate(KUrl("about:favorites")); + + rApp->mainWindow()->currentTab()->createPreviewSelectorBar(index); return; } if (url.directory() == QL1S("preview/remove")) |