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
Ark
Commits
99057f5e
Commit
99057f5e
authored
Sep 26, 2020
by
Elvis Angelaccio
Browse files
Override text of saveAs standard action
This makes it clear what the action actually does.
BUG: 426960
parent
cb010aa1
Changes
1
Hide whitespace changes
Inline
Side-by-side
part/part.cpp
View file @
99057f5e
...
...
@@ -366,6 +366,7 @@ void Part::setupActions()
this
,
&
Part
::
slotToggleInfoPanel
);
m_saveAsAction
=
KStandardAction
::
saveAs
(
this
,
&
Part
::
slotSaveAs
,
this
);
m_saveAsAction
->
setText
(
i18nc
(
"@action:inmenu"
,
"Save Copy As..."
));
actionCollection
()
->
addAction
(
QStringLiteral
(
"ark_file_save_as"
),
m_saveAsAction
);
m_openFileAction
=
actionCollection
()
->
addAction
(
QStringLiteral
(
"openfile"
));
...
...
@@ -1663,7 +1664,7 @@ void Part::slotToggleInfoPanel(bool visible)
void
Part
::
slotSaveAs
()
{
const
QUrl
srcUrl
=
url
();
const
QUrl
saveUrl
=
QFileDialog
::
getSaveFileUrl
(
widget
(),
i18nc
(
"@title:window"
,
"Save
Archive
As"
),
srcUrl
);
const
QUrl
saveUrl
=
QFileDialog
::
getSaveFileUrl
(
widget
(),
i18nc
(
"@title:window"
,
"Save
Copy
As"
),
srcUrl
);
if
(
saveUrl
.
isEmpty
())
{
// If the user selected "cancel" the returned url is empty
return
;
...
...
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