Browse Source

qt address list: check internal address corruption when copying address

regressing following c721e880d0

note that place_text_on_clipboard is overridden in AddressList
ln-negative-red
SomberNight 5 years ago
parent
commit
2fec17760d
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 6
      electrum/gui/qt/util.py

6
electrum/gui/qt/util.py

@ -634,7 +634,11 @@ class MyTreeView(QTreeView):
column_title = self.model().horizontalHeaderItem(column).text()
item_col = self.model().itemFromIndex(idx.sibling(idx.row(), column))
column_data = item_col.text().strip()
cc.addAction(column_title, lambda t=column_data: self.parent.app.clipboard().setText(t))
cc.addAction(column_title, lambda t=column_data: self.place_text_on_clipboard(t))
def place_text_on_clipboard(self, text):
self.parent.app.clipboard().setText(text)
class ButtonsWidget(QWidget):

Loading…
Cancel
Save