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
Multimedia
Kdenlive
Commits
a5377035
Commit
a5377035
authored
Mar 27, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix () added to action name without shortcuts
parent
becb2f6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mainwindow.cpp
View file @
a5377035
...
...
@@ -782,7 +782,7 @@ void MainWindow::updateActionsToolTip()
// find the shortcut pattern and delete (note the preceding space in the RegEx)
QString
strippedTooltip
=
tempAction
->
toolTip
().
remove
(
QRegExp
(
QStringLiteral
(
"
\\
s
\\
(.*
\\
)"
)));
// append shortcut if it exists for action
if
(
tempAction
->
shortcut
()
==
QKeySequence
(
0
))
{
if
(
tempAction
->
shortcut
()
==
QKeySequence
())
{
tempAction
->
setToolTip
(
strippedTooltip
);
}
else
{
tempAction
->
setToolTip
(
strippedTooltip
+
QStringLiteral
(
" ("
)
+
tempAction
->
shortcut
().
toString
()
+
QLatin1Char
(
')'
));
...
...
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