summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-07-03 03:31:33 +0200
committermathieui <mathieui@mathieui.net>2012-07-03 03:32:12 +0200
commitc3f822e7b26c0e61ebe1477f678eefe6ada8fe65 (patch)
tree291a5111f00e0a7e099ee0d163f37e1e468e6480 /src
parent4bc215806b62f687faec9f5176d717f071cc6c9f (diff)
downloadpoezio-c3f822e7b26c0e61ebe1477f678eefe6ada8fe65.tar.gz
poezio-c3f822e7b26c0e61ebe1477f678eefe6ada8fe65.tar.bz2
poezio-c3f822e7b26c0e61ebe1477f678eefe6ada8fe65.tar.xz
poezio-c3f822e7b26c0e61ebe1477f678eefe6ada8fe65.zip
Remove the duplicated sort_by function in the MUCList
Diffstat (limited to 'src')
-rw-r--r--src/tabs.py23
1 files changed, 6 insertions, 17 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 5b6dda56..dfa5f529 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -2788,24 +2788,13 @@ class MucListTab(Tab):
def sort_by(self):
if self.list_header.get_order():
- self.listview.sort_by_column(col_name=self.list_header.get_sel_column(),asc=False)
- self.list_header.set_order(False)
- self.list_header.refresh()
+ self.listview.sort_by_column(col_name=self.list_header.get_sel_column(),asc=False)
+ self.list_header.set_order(False)
+ self.list_header.refresh()
else:
- self.listview.sort_by_column(col_name=self.list_header.get_sel_column(),asc=True)
- self.list_header.set_order(True)
- self.list_header.refresh()
- curses.doupdate()
-
- def sort_by(self):
- if self.list_header.get_order():
- self.listview.sort_by_column(col_name=self.list_header.get_sel_column(),asc=False)
- self.list_header.set_order(False)
- self.list_header.refresh()
- else:
- self.listview.sort_by_column(col_name=self.list_header.get_sel_column(),asc=True)
- self.list_header.set_order(True)
- self.list_header.refresh()
+ self.listview.sort_by_column(col_name=self.list_header.get_sel_column(),asc=True)
+ self.list_header.set_order(True)
+ self.list_header.refresh()
curses.doupdate()
def join_selected(self):