diff options
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") ); |