Browse Source

fix parent of address history widget

283
ThomasV 10 years ago
parent
commit
3a2e2702bb
  1. 2
      gui/qt/address_dialog.py
  2. 4
      gui/qt/util.py

2
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)

4
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)

Loading…
Cancel
Save