Skip to content
GitLab
Menu
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
44f00a49
Commit
44f00a49
authored
Oct 23, 2020
by
Carlos Alves
Committed by
Kurt Hindenburg
Oct 23, 2020
Browse files
Fix duplicates link-related entries in context menu
BUG: 426808 FIXED-IN: 20.08.3 !237
parent
b6263595
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/session/SessionController.cpp
View file @
44f00a49
...
...
@@ -1790,7 +1790,18 @@ void SessionController::showDisplayContextMenu(const QPoint& position)
#else
copy
->
setShortcut
(
Konsole
::
ACCEL
+
Qt
::
SHIFT
+
Qt
::
Key_C
);
#endif
// prepend content-specific actions such as "Open Link", "Copy Email Address" etc.
// remove content-specific actions such as "Open Link", "Copy Email Address" etc
if
(
popup
->
actions
()[
0
]
->
objectName
()
==
QStringLiteral
(
"open-action"
)
&&
popup
->
actions
()[
1
]
->
objectName
()
==
QStringLiteral
(
"copy-action"
))
{
popup
->
removeAction
(
popup
->
actions
().
value
(
0
,
nullptr
));
popup
->
removeAction
(
popup
->
actions
().
value
(
0
,
nullptr
));
}
// prepend content-specific actions such as "Open Link", "Copy Email Address" etc
QSharedPointer
<
HotSpot
>
hotSpot
=
_sessionDisplayConnection
->
view
()
->
filterActions
(
position
);
if
(
hotSpot
!=
nullptr
)
{
popup
->
insertActions
(
popup
->
actions
().
value
(
0
,
nullptr
),
hotSpot
->
actions
()
<<
contentSeparator
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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