diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2008-12-01 01:09:56 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2008-12-01 01:09:56 +0100 |
commit | 6efdfa17dd017d735364626220b501cb2063e1c9 (patch) | |
tree | b1b6470107078c0d76128c099aac0571752cf50e /src/browsermainwindow.cpp | |
parent | - Ported historyMenu to KAction (diff) | |
download | rekonq-6efdfa17dd017d735364626220b501cb2063e1c9.tar.xz |
New BookmarkMenu implementation
Diffstat (limited to 'src/browsermainwindow.cpp')
-rw-r--r-- | src/browsermainwindow.cpp | 7 |
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") ); |