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
PIM
PIM Sieve Editor
Commits
dff9d494
Commit
dff9d494
authored
Oct 20, 2022
by
Laurent Montel
Browse files
Use discard
parent
076de7b6
Pipeline
#252017
passed with stage
in 12 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/sieveeditorpagewidget.cpp
View file @
dff9d494
...
...
@@ -168,7 +168,7 @@ bool SieveEditorPageWidget::needToSaveScript()
i18n
(
"Script '%1' is new. Do you want to save it?"
,
mCurrentURL
.
fileName
()),
i18n
(
"Save Script"
),
KStandardGuiItem
::
save
(),
KStandardGuiItem
::
cancel
());
KStandardGuiItem
::
discard
());
#else
const
int
resultQuestion
=
KMessageBox
::
warningYesNoCancel
(
this
,
i18n
(
"Script '%1' is new. Do you want to save it?"
,
mCurrentURL
.
fileName
()));
#endif
...
...
@@ -189,7 +189,7 @@ bool SieveEditorPageWidget::needToSaveScript()
i18n
(
"Script '%1' was changed. Do you want to save it ?"
,
mCurrentURL
.
fileName
()),
i18n
(
"Save Script"
),
KStandardGuiItem
::
save
(),
KStandardGuiItem
::
cancel
());
KStandardGuiItem
::
discard
());
#else
const
int
resultQuestion
=
KMessageBox
::
warningYesNoCancel
(
this
,
i18n
(
"Script '%1' was changed. Do you want to save it ?"
,
mCurrentURL
.
fileName
()));
#endif
...
...
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