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
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
5 additions and
1 deletions
-
electrum/gui/qt/util.py
|
@ -634,7 +634,11 @@ class MyTreeView(QTreeView): |
|
|
column_title = self.model().horizontalHeaderItem(column).text() |
|
|
column_title = self.model().horizontalHeaderItem(column).text() |
|
|
item_col = self.model().itemFromIndex(idx.sibling(idx.row(), column)) |
|
|
item_col = self.model().itemFromIndex(idx.sibling(idx.row(), column)) |
|
|
column_data = item_col.text().strip() |
|
|
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): |
|
|
class ButtonsWidget(QWidget): |
|
|
|
|
|
|
|
|