electrum

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

commit 2fec17760db5f0c99f4ec25d7914a1d592cdd7ea
parent 5549f3adbea06f2401a2281abaca58baa5f1f573
Author: SomberNight <somber.night@protonmail.com>
Date:   Mon, 11 Nov 2019 15:51:23 +0100

qt address list: check internal address corruption when copying address

regressing following c721e880d0e203c770328d0830a37bd78eeae0e2

note that place_text_on_clipboard is overridden in AddressList

Diffstat:
Melectrum/gui/qt/util.py | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/electrum/gui/qt/util.py b/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):