From ebeed4736fc3dd60255f2808cbdead237caacc58 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sun, 10 Feb 2019 21:20:44 +0100 Subject: [PATCH] qt utxo_list: show full prevout_n in outpoint column previously, if prevout_n was >=10, the ":" char or even digits were cut --- electrum/gui/qt/utxo_list.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qt/utxo_list.py b/electrum/gui/qt/utxo_list.py index 1055ca2d6..529e6d12e 100644 --- a/electrum/gui/qt/utxo_list.py +++ b/electrum/gui/qt/utxo_list.py @@ -70,16 +70,18 @@ class UTXOList(MyTreeView): address = x.get('address') height = x.get('height') name = x.get('prevout_hash') + ":%d"%x.get('prevout_n') + name_short = x.get('prevout_hash')[:10] + '...' + ":%d"%x.get('prevout_n') self.utxo_dict[name] = x label = self.wallet.get_label(x.get('prevout_hash')) amount = self.parent.format_amount(x['value'], whitespaces=True) - labels = [address, label, amount, '%d'%height, name[0:10] + '...' + name[-2:]] + labels = [address, label, amount, '%d'%height, name_short] utxo_item = [QStandardItem(x) for x in labels] self.set_editability(utxo_item) utxo_item[self.Columns.ADDRESS].setFont(QFont(MONOSPACE_FONT)) utxo_item[self.Columns.AMOUNT].setFont(QFont(MONOSPACE_FONT)) utxo_item[self.Columns.OUTPOINT].setFont(QFont(MONOSPACE_FONT)) utxo_item[self.Columns.ADDRESS].setData(name, Qt.UserRole) + utxo_item[self.Columns.OUTPOINT].setToolTip(name) if self.wallet.is_frozen(address): utxo_item[self.Columns.ADDRESS].setBackground(ColorScheme.BLUE.as_color(True)) self.model().insertRow(idx, utxo_item)