electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit d94aee83b99ffe405a4875ccb215ab6c774c12e2
parent 89338fa7bdff5ebaeafc5d8ab1b9aa244b000811
Author: ThomasV <thomasv@gitorious>
Date:   Thu, 23 Apr 2015 18:28:37 +0200

enable sorting for all lists except history

Diffstat:
Mgui/qt/history_widget.py | 1+
Mgui/qt/util.py | 1+
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/gui/qt/history_widget.py b/gui/qt/history_widget.py @@ -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 diff --git a/gui/qt/util.py b/gui/qt/util.py @@ -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: