From ba51cef0d5e9b3cdf71199940ef02a3cb9f5dc1d Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Tue, 7 Feb 2023 00:03:48 +0100 Subject: [PATCH] qml: silence undefined property errors when not really used --- electrum/gui/qml/components/History.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qml/components/History.qml b/electrum/gui/qml/components/History.qml index 17b7a2247..6a1f758b8 100644 --- a/electrum/gui/qml/components/History.qml +++ b/electrum/gui/qml/components/History.qml @@ -131,7 +131,9 @@ Pane { Label { id: postext anchors.centerIn: parent - text: listview.itemAt(0,listview.contentY + (dragb.y + dragb.height/2)).delegateModel.date + text: vdragscroll.drag.active + ? listview.itemAt(0,listview.contentY + (dragb.y + dragb.height/2)).delegateModel.date + : '' font.pixelSize: constants.fontSizeLarge } }