summaryrefslogtreecommitdiff
path: root/src/browsermainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2008-12-01 01:09:56 +0100
committerAndrea Diamantini <adjam7@gmail.com>2008-12-01 01:09:56 +0100
commit6efdfa17dd017d735364626220b501cb2063e1c9 (patch)
treeb1b6470107078c0d76128c099aac0571752cf50e /src/browsermainwindow.cpp
parent- Ported historyMenu to KAction (diff)
downloadrekonq-6efdfa17dd017d735364626220b501cb2063e1c9.tar.xz
New BookmarkMenu implementation
Diffstat (limited to 'src/browsermainwindow.cpp')
-rw-r--r--src/browsermainwindow.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/browsermainwindow.cpp b/src/browsermainwindow.cpp
index 0bf8b0ef..5b91fdb0 100644
--- a/src/browsermainwindow.cpp
+++ b/src/browsermainwindow.cpp
@@ -342,13 +342,14 @@ void BrowserMainWindow::setupMenu()
KMenu* bookmarksMenu = new KMenu( i18n("&Bookmarks"), this );
- menuBar()->addMenu( bookmarksMenu );
-
- KBookmarkManager *mgr = KBookmarkManager::managerForFile( "~/.kde/share/apps/konqueror/bookmarks.xml" , "konqueror" );
+ KUrl bookfile = KUrl( "~/.kde/share/apps/konqueror/bookmarks.xml" );
+ KBookmarkManager *mgr = KBookmarkManager::managerForExternalFile( bookfile.path() ); //FIXME hardcoded path
KActionCollection * ac = new KActionCollection( this );
ac->addAction( "Add Bookmark" , KStandardAction::addBookmark( this, SLOT( slotAddBookmark() ) , this ) );
m_bookmarkMenu = new KBookmarkMenu( mgr , 0 , bookmarksMenu , ac );
+ menuBar()->addMenu( bookmarksMenu );
+
// ------------------------------------------------------------- WINDOW --------------------------------------------------------------------------------------------------
m_windowMenu = (KMenu *) menuBar()->addMenu( i18n("&Window") );