tenable sorting for all lists except history - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit d94aee83b99ffe405a4875ccb215ab6c774c12e2 DIR parent 89338fa7bdff5ebaeafc5d8ab1b9aa244b000811 HTML Author: ThomasV <thomasv@gitorious> Date: Thu, 23 Apr 2015 18:28:37 +0200 enable sorting for all lists except history Diffstat: M gui/qt/history_widget.py | 1 + M gui/qt/util.py | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) --- DIR diff --git a/gui/qt/history_widget.py b/gui/qt/history_widget.py t@@ -30,6 +30,7 @@ class HistoryWidget(MyTreeWidget): def __init__(self, parent=None): MyTreeWidget.__init__(self, parent, self.create_menu, [ '', _('Date'), _('Description') , _('Amount'), _('Balance')], [40, 140, None, 140, 140]) self.config = self.parent.config + self.setSortingEnabled(False) def update(self, h): self.wallet = self.parent.wallet DIR diff --git a/gui/qt/util.py b/gui/qt/util.py t@@ -284,6 +284,7 @@ class MyTreeWidget(QTreeWidget): self.edit_column = i else: self.setColumnWidth(i, width) + self.setSortingEnabled(True) def on_activated(self, item): if not item: