summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-09-09 14:11:12 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-09-10 22:15:11 +0200
commit75b65dad7e2412533c45dc362ef85f833d31b1f8 (patch)
tree1e11c99a3a56f1e6076f26df846e23a5d359baf6
parentHUGE HUGE HUGE COMMIT! (diff)
downloadrekonq-75b65dad7e2412533c45dc362ef85f833d31b1f8.tar.xz
Fixed improper use of Bookmark Manager class
-rw-r--r--src/bookmarks.cpp4
-rw-r--r--src/bookmarks.h6
-rw-r--r--src/homepage.cpp2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/bookmarks.cpp b/src/bookmarks.cpp
index b1e482cf..a92cb2bb 100644
--- a/src/bookmarks.cpp
+++ b/src/bookmarks.cpp
@@ -297,7 +297,7 @@ KAction *BookmarkProvider::fillBookmarkBar(const KBookmark &bookmark)
}
-KBookmarkGroup BookmarkProvider::toolbar()
+KBookmarkGroup BookmarkProvider::rootGroup()
{
- return m_manager->toolbar();
+ return m_manager->root();
}
diff --git a/src/bookmarks.h b/src/bookmarks.h
index 09d05f6c..5fd0ebee 100644
--- a/src/bookmarks.h
+++ b/src/bookmarks.h
@@ -201,11 +201,11 @@ public:
QAction *actionByName(const QString &name);
/**
- * returns Bookmark Manager toolbar
+ * returns Bookmark Manager root group
*
- * Used in rekonq home page
+ * @return the root bookmark group
*/
- KBookmarkGroup toolbar();
+ KBookmarkGroup rootGroup();
signals:
/**
* @short This signal is emitted when an url has to be loaded
diff --git a/src/homepage.cpp b/src/homepage.cpp
index bba49999..f733d4c8 100644
--- a/src/homepage.cpp
+++ b/src/homepage.cpp
@@ -114,7 +114,7 @@ QString HomePage::fillHistory()
QString HomePage::fillBookmarks()
{
- KBookmarkGroup toolBarGroup = Application::bookmarkProvider()->toolbar();
+ KBookmarkGroup toolBarGroup = Application::bookmarkProvider()->rootGroup();
if (toolBarGroup.isNull())
{
return QString("Error retrieving bookmarks!");