summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-01-29 11:06:52 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-01-29 11:06:52 +0100
commitb7f58ca0445d5bd58b61bcad059c1704c955b71f (patch)
tree0a079ddbcb4deb5eced422f678fa8ca713c93a5e /src
parentAlways Create New Tabs (diff)
downloadrekonq-b7f58ca0445d5bd58b61bcad059c1704c955b71f.tar.xz
Faster way to access the "Add favorite" thing
Diffstat (limited to 'src')
-rw-r--r--src/newtabpage.cpp6
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"))