Commit 70e9d272 authored by Ahmad Samir's avatar Ahmad Samir
Browse files

Adapt to changes in KBookmarks >= 5.69

Test Plan:
The Bookmarks menu is still added as expected and the actions still show
in the configure shortcuts dialog. I couldn't test actually creating a
bookmark as I have no access to remote servers.

Reviewers: cfeck, uwolfer, murrant

Reviewed By: cfeck

Differential Revision: https://phabricator.kde.org/D28920
parent c9866aa4
......@@ -25,6 +25,7 @@
#include "mainwindow.h"
#include "krdc_debug.h"
#include <kbookmarks_version.h>
#include <KBookmarks/KBookmarkOwner>
#include <KLocalizedString>
......@@ -41,7 +42,13 @@ BookmarkManager::BookmarkManager(KActionCollection *collection, QMenu *menu, Mai
m_manager = KBookmarkManager::managerForFile(file, QLatin1String("krdc"));
m_manager->setUpdate(true);
#if KBOOKMARKS_VERSION < QT_VERSION_CHECK(5, 69, 0)
m_bookmarkMenu = new KBookmarkMenu(m_manager, this, menu, collection);
#else
m_bookmarkMenu = new KBookmarkMenu(m_manager, this, menu);
collection->addActions(menu->actions());
#endif
KBookmarkGroup root = m_manager->root();
KBookmark bm = root.first();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment