Commit 57df81cd authored by Ahmad Samir's avatar Ahmad Samir

Adapt the code to KBookmarkMenu-5.69 changes

Test Plan:
Bookmarks menu still works, and the bookmark actions still show in the
shortcuts editor dialog.

Reviewers: #konversation, psn

Reviewed By: #konversation, psn

Subscribers: #konversation

Differential Revision: https://phabricator.kde.org/D28911
parent 2b2266d8
......@@ -21,7 +21,10 @@ Copyright (C) 2002 Carsten Pfeiffer <pfeiffer@kde.org>
#include "connectionmanager.h"
#include "viewer/viewcontainer.h"
#include <KActionCollection>
#include <kbookmarks_version.h>
#include <KBookmarkMenu>
#include <QMenu>
#include <QStandardPaths>
......@@ -41,7 +44,12 @@ m_mainWindow(mainWindow)
manager->setEditorOptions(i18n("Konversation Bookmarks Editor"), false);
manager->setUpdate( true );
#if KBOOKMARKS_VERSION < QT_VERSION_CHECK(5, 69, 0)
m_bookmarkMenu = new KBookmarkMenu(manager, this, menu, m_mainWindow->actionCollection());
#else
m_bookmarkMenu = new KBookmarkMenu(manager, this, menu);
m_mainWindow->actionCollection()->addActions(menu->actions());
#endif
}
KonviBookmarkHandler::~KonviBookmarkHandler()
......
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