From d94aee83b99ffe405a4875ccb215ab6c774c12e2 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 23 Apr 2015 18:28:37 +0200 Subject: [PATCH] enable sorting for all lists except history --- gui/qt/history_widget.py | 1 + gui/qt/util.py | 1 + 2 files changed, 2 insertions(+) diff --git a/gui/qt/history_widget.py b/gui/qt/history_widget.py index 82bbb6b8..d7bf3daa 100644 --- 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 index b839449b..489200e3 100644 --- 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: