From 829414ed0166eed147f6b5e50f0b3ed7da274ad7 Mon Sep 17 00:00:00 2001 From: xiphon Date: Wed, 15 Jul 2020 04:02:42 +0000 Subject: [PATCH] Transfer: fix 'Send' and 'Sweep' functionality --- MiddlePanel.qml | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/MiddlePanel.qml b/MiddlePanel.qml index 3a31152e..0bcca0be 100644 --- a/MiddlePanel.qml +++ b/MiddlePanel.qml @@ -50,7 +50,10 @@ Rectangle { property alias contentHeight: mainFlickable.contentHeight property alias flickable: mainFlickable - property Transfer transferView: Transfer { } + property Transfer transferView: Transfer { + onPaymentClicked: root.paymentClicked(address, paymentId, amount, mixinCount, priority, description) + onSweepUnmixableClicked: root.sweepUnmixableClicked() + } property Receive receiveView: Receive { } property Merchant merchantView: Merchant { } property TxKey txkeyView: TxKey { } @@ -260,18 +263,4 @@ Rectangle { anchors.bottom: parent.bottom anchors.left: borderLeft.right } - - /* connect "payment" click */ - Connections { - ignoreUnknownSignals: false - target: transferView - function paymentClicked(address, paymentId, amount, mixinCount, priority, description) { - console.log("MiddlePanel: paymentClicked") - paymentClicked(address, paymentId, amount, mixinCount, priority, description) - } - function onSweepUnmixableClicked() { - console.log("MiddlePanel: sweepUnmixableClicked") - sweepUnmixableClicked() - } - } }