tqt address list: check internal address corruption when copying address - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 2fec17760db5f0c99f4ec25d7914a1d592cdd7ea DIR parent 5549f3adbea06f2401a2281abaca58baa5f1f573 HTML 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: M electrum/gui/qt/util.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- DIR diff --git a/electrum/gui/qt/util.py b/electrum/gui/qt/util.py t@@ -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):