electrum

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

commit 3a2e2702bb5e8257423644ca898c2bfe6fa7ac9b
parent 93250b10417299e8b8c6681df8cb5b4120d0f582
Author: ThomasV <thomasv@gitorious>
Date:   Sat,  4 Apr 2015 21:15:58 +0200

fix parent of address history widget

Diffstat:
Mgui/qt/address_dialog.py | 2+-
Mgui/qt/util.py | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gui/qt/address_dialog.py b/gui/qt/address_dialog.py @@ -61,7 +61,7 @@ class AddressDialog(QDialog): vbox.addWidget(self.addr_e) vbox.addWidget(QLabel(_("History"))) - self.hw = HistoryWidget(self) + self.hw = HistoryWidget(self.parent) vbox.addWidget(self.hw) vbox.addStretch(1) diff --git a/gui/qt/util.py b/gui/qt/util.py @@ -294,9 +294,9 @@ class MyTreeWidget(QTreeWidget): def edit_label(self, item, column): if column==self.edit_column and item.isSelected(): text = unicode(item.text(column)) - tx_hash = str(item.data(0, Qt.UserRole).toString()) + key = str(item.data(0, Qt.UserRole).toString()) self.is_edit = True - if text == self.parent.wallet.get_default_label(tx_hash): + if text == self.parent.wallet.get_default_label(key): item.setText(column, '') item.setFlags(Qt.ItemIsEditable|Qt.ItemIsSelectable | Qt.ItemIsUserCheckable | Qt.ItemIsEnabled | Qt.ItemIsDragEnabled) self.editItem(item, column)