Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
220013df
Commit
220013df
authored
Feb 08, 2022
by
Kurt Hindenburg
Browse files
Simplify call and add notes about API
parent
0760b7ed
Pipeline
#135126
passed with stage
in 2 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/BookmarkHandler.cpp
View file @
220013df
...
...
@@ -48,7 +48,10 @@ BookmarkHandler::BookmarkHandler(KActionCollection *collection, QMenu *menu, boo
KBookmarkManager
*
manager
=
KBookmarkManager
::
managerForFile
(
_file
,
QStringLiteral
(
"konsole"
));
manager
->
setUpdate
(
true
);
auto
*
bookmarkMenu
=
new
BookmarkMenu
(
manager
,
this
,
_menu
,
toplevel
?
collection
:
nullptr
);
// This constructor is only called with toplevel as true; regardless the
// fourth argument can not be nullptr as it will crash in BookmarkMenu
// TODO: remove the toplevel boolean argument in API
auto
*
bookmarkMenu
=
new
BookmarkMenu
(
manager
,
this
,
_menu
,
collection
);
bookmarkMenu
->
setParent
(
this
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment