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
Multimedia
Elisa
Commits
05976910
Commit
05976910
authored
Jan 10, 2021
by
Matthieu Gallien
🎵
Browse files
when closing a dirty settings window, ask the user chat to do
parent
9f07adda
Pipeline
#47687
passed with stage
in 9 minutes and 52 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
src/qml/ElisaConfigurationDialog.qml
View file @
05976910
...
...
@@ -320,4 +320,32 @@ Window {
}
}
}
Dialogs.MessageDialog
{
id
:
dirtyClosingDialog
standardButtons
:
Dialogs
.
StandardButton
.
Save
|
Dialogs
.
StandardButton
.
Discard
|
Dialogs
.
StandardButton
.
Cancel
title
:
i18n
(
"
Warning
"
)
icon
:
Dialogs
.
StandardIcon
.
Warning
text
:
i18n
(
'
You have unsaved changes. Do you want to apply the changes or discard them?
'
)
onDiscard
:
{
ElisaConfigurationDialog
.
cancel
()
dialog
.
close
()
}
onAccepted
:
{
ElisaConfigurationDialog
.
save
()
dialog
.
close
()
}
}
onClosing
:
{
if
(
ElisaConfigurationDialog
.
isDirty
)
{
close
.
accepted
=
false
dirtyClosingDialog
.
open
()
}
}
}
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