From 2fec17760db5f0c99f4ec25d7914a1d592cdd7ea Mon Sep 17 00:00:00 2001 From: SomberNight Date: Mon, 11 Nov 2019 15:51:23 +0100 Subject: [PATCH] qt address list: check internal address corruption when copying address regressing following c721e880d0e203c770328d0830a37bd78eeae0e2 note that place_text_on_clipboard is overridden in AddressList --- electrum/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 index f77bac78c..68bc50d01 100644 --- 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):