summaryrefslogtreecommitdiffstats
path: root/examples/declarative/text/textselection/textselection.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/text/textselection/textselection.qml')
-rw-r--r--examples/declarative/text/textselection/textselection.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/declarative/text/textselection/textselection.qml b/examples/declarative/text/textselection/textselection.qml
index 6db7a85..d02a317 100644
--- a/examples/declarative/text/textselection/textselection.qml
+++ b/examples/declarative/text/textselection/textselection.qml
@@ -265,7 +265,7 @@ Rectangle {
anchors.fill: parent
onClicked: {
edit.cursorPosition = edit.selectionEnd;
- edit.select(edit.cursorPosition, edit.cursorPosition);
+ edit.deselect();
editor.state = ""
}
}