diff --git a/src/konqbookmarkmenu.h b/src/konqbookmarkmenu.h --- a/src/konqbookmarkmenu.h +++ b/src/konqbookmarkmenu.h @@ -26,6 +26,7 @@ #include "kbookmarkcontextmenu.h" #include +#include namespace Konqueror { // to avoid clashing with KF5::Bookmarks which had a KonqBookmarkMenu class. Remove once using KF6. @@ -61,7 +62,10 @@ KonqBookmarkMenu(KBookmarkManager *mgr, KBookmarkOwner *owner, KBookmarkActionMenu *parentMenu, QString parentAddress) : KBookmarkMenu(mgr, owner, parentMenu->menu(), parentAddress) { +//KBookmarkMenu doesn't create an action collection only in version 5.69.0 +#if KBOOKMARKS_VERSION == QT_VERSION_CHECK(5, 69, 0) m_actionCollection = new KActionCollection(this); +#endif } protected: