aboutsummaryrefslogtreecommitdiff
path: root/components/LineEditMulti.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/LineEditMulti.qml')
-rw-r--r--components/LineEditMulti.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/LineEditMulti.qml b/components/LineEditMulti.qml
index 266c6a30..46052495 100644
--- a/components/LineEditMulti.qml
+++ b/components/LineEditMulti.qml
@@ -80,9 +80,6 @@ ColumnLayout {
property alias readOnly: input.readOnly
property bool copyButton: false
property bool pasteButton: false
- property var onPaste: function(clipboardText) {
- item.text = clipboardText;
- }
property bool showingHeader: labelText != "" || copyButton || pasteButton
property var wrapMode: Text.NoWrap
property alias addressValidation: input.addressValidation
@@ -146,7 +143,10 @@ ColumnLayout {
MoneroComponents.LabelButton {
id: pasteButtonId
- onClicked: item.onPaste(clipboard.text())
+ onClicked: {
+ input.clear();
+ input.paste();
+ }
text: qsTr("Paste") + translationManager.emptyString
visible: pasteButton
}