From 828f07a1ff15507c572dd92871a6d86e31655888 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Wed, 20 Feb 2019 20:05:28 +0100 Subject: [PATCH] qt request_list: disable editing existing items --- electrum/gui/qt/request_list.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qt/request_list.py b/electrum/gui/qt/request_list.py index df414bc6e..b8f536868 100644 --- a/electrum/gui/qt/request_list.py +++ b/electrum/gui/qt/request_list.py @@ -66,7 +66,7 @@ class RequestList(MyTreeView): def __init__(self, parent): super().__init__(parent, self.create_menu, stretch_column=self.Columns.DESCRIPTION, - editable_columns=[self.Columns.AMOUNT]) + editable_columns=[]) self.setModel(QStandardItemModel(self)) self.setSortingEnabled(True) self.update() @@ -151,6 +151,7 @@ class RequestList(MyTreeView): date = format_time(lnaddr.date) labels = [date, description, amount_str, pr_tooltips.get(status,'')] items = [QStandardItem(e) for e in labels] + self.set_editability(items) items[self.Columns.DATE].setIcon(read_QIcon("lightning.png")) items[self.Columns.DATE].setData(REQUEST_TYPE_LN, ROLE_REQUEST_TYPE) items[self.Columns.DATE].setData(key, ROLE_RHASH_OR_ADDR)