aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2/texteditor/qml/texteditor.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quickcontrols2/texteditor/qml/texteditor.qml')
-rw-r--r--examples/quickcontrols2/texteditor/qml/texteditor.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quickcontrols2/texteditor/qml/texteditor.qml b/examples/quickcontrols2/texteditor/qml/texteditor.qml
index f55405ff..7d92bea9 100644
--- a/examples/quickcontrols2/texteditor/qml/texteditor.qml
+++ b/examples/quickcontrols2/texteditor/qml/texteditor.qml
@@ -162,7 +162,7 @@ ApplicationWindow {
id: openDialog
fileMode: FileDialog.OpenFile
nameFilters: ["Text files (*.txt)", "HTML files (*.html *.htm)"]
- onFileSelected: document.load(file)
+ onAccepted: document.load(file)
}
FileDialog {
@@ -170,7 +170,7 @@ ApplicationWindow {
fileMode: FileDialog.SaveFile
defaultSuffix: document.fileType
nameFilters: openDialog.nameFilters
- onFileSelected: document.saveAs(file)
+ onAccepted: document.saveAs(file)
}
FontDialog {