electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit ebeed4736fc3dd60255f2808cbdead237caacc58
parent c23b869d3cf99311d4a9c2692454df911b10ee93
Author: SomberNight <somber.night@protonmail.com>
Date:   Sun, 10 Feb 2019 21:20:44 +0100

qt utxo_list: show full prevout_n in outpoint column

previously, if prevout_n was >=10, the ":" char or even digits were cut

Diffstat:
Melectrum/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 @@ -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)