From e02ca6b2d896181f7b39535c80041b95226d334d Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Thu, 6 Apr 2023 09:26:52 +0200 Subject: [PATCH] qml: add logging of instance around SwapDialog create/destroy and swap trigger --- electrum/gui/qml/components/Channels.qml | 5 ++++- electrum/gui/qml/components/SwapDialog.qml | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/electrum/gui/qml/components/Channels.qml b/electrum/gui/qml/components/Channels.qml index 13f3cef92..f1f1370dc 100644 --- a/electrum/gui/qml/components/Channels.qml +++ b/electrum/gui/qml/components/Channels.qml @@ -155,7 +155,10 @@ Pane { Component { id: swapDialog SwapDialog { - onClosed: destroy() + onClosed: { + console.log('Destroying SwapDialog ' + this) + destroy() + } } } diff --git a/electrum/gui/qml/components/SwapDialog.qml b/electrum/gui/qml/components/SwapDialog.qml index 77b8694fc..ba24db9cc 100644 --- a/electrum/gui/qml/components/SwapDialog.qml +++ b/electrum/gui/qml/components/SwapDialog.qml @@ -243,7 +243,10 @@ ElDialog { text: qsTr('Ok') icon.source: Qt.resolvedUrl('../../icons/confirmed.png') enabled: swaphelper.valid - onClicked: swaphelper.executeSwap() + onClicked: { + console.log('Swap triggered from dialog ' + this + ' using swaphelper ' + swaphelper) + swaphelper.executeSwap() + } } } @@ -258,6 +261,7 @@ ElDialog { } Component.onCompleted: { + console.log('Created SwapDialog ' + this) swapslider.value = swaphelper.sliderPos }