From 107a6f9080ce03003cc16379cf5770ac9406e824 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 15 Mar 2023 11:11:11 +0100 Subject: [PATCH] utxo_dialog: fix minor regression (set cursor to top after drawing) --- electrum/gui/qt/utxo_dialog.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/electrum/gui/qt/utxo_dialog.py b/electrum/gui/qt/utxo_dialog.py index 8d2d44273..c714e41fc 100644 --- a/electrum/gui/qt/utxo_dialog.py +++ b/electrum/gui/qt/utxo_dialog.py @@ -100,10 +100,7 @@ class UTXODialog(WindowModalDialog): ASCII_PIPE = '│' ASCII_SPACE = ' ' - # set cursor to top - cursor.setPosition(0) self.parents_list.clear() - self.parents_list.setTextCursor(cursor) self.num_reuse = 0 def print_ascii_tree(_txid, prefix, is_last, is_uncle): if _txid not in parents: @@ -144,6 +141,9 @@ class UTXODialog(WindowModalDialog): self.stats_label.setText(msg) self.txo_color_parent.legend_label.setVisible(True) self.txo_color_uncle.legend_label.setVisible(bool(self.num_reuse)) + # set cursor to top + cursor.setPosition(0) + self.parents_list.setTextCursor(cursor) def open_tx(self, txid): if isinstance(txid, QUrl):