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
PIM
KOrganizer
Commits
7b685bd2
Commit
7b685bd2
authored
Nov 04, 2021
by
Friedrich W. H. Kossebau
Browse files
Export calendar: use action titles for overwrite confirm dialog buttons
parent
4f37ae5c
Pipeline
#94069
canceled with stage
Changes
1
Pipelines
3
Show whitespace changes
Inline
Side-by-side
src/calendarview.cpp
View file @
7b685bd2
...
...
@@ -1710,7 +1710,11 @@ void CalendarView::exportICalendar()
}
if
(
QFileInfo
::
exists
(
filename
))
{
if
(
KMessageBox
::
No
==
KMessageBox
::
warningYesNo
(
this
,
i18n
(
"Do you want to overwrite %1?"
,
filename
)))
{
const
int
answer
=
KMessageBox
::
warningContinueCancel
(
this
,
i18n
(
"Do you want to overwrite %1?"
,
filename
),
i18nc
(
"@title:window"
,
"Export Calendar"
),
KStandardGuiItem
::
overwrite
());
if
(
answer
==
KMessageBox
::
Cancel
)
{
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