From 01965922c1caec2d047a7cfe3db3a9f584f309ce Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 20 Mar 2009 14:43:31 +0900 Subject: [PATCH] fix sorting in deck/plugin browser --- ankiqt/ui/getshared.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ankiqt/ui/getshared.py b/ankiqt/ui/getshared.py index 6fa12ffff..980c754df 100644 --- a/ankiqt/ui/getshared.py +++ b/ankiqt/ui/getshared.py @@ -94,7 +94,10 @@ class GetShared(QDialog): cols = (R_TITLE, R_COUNT) for rc, r in enumerate(self.curList): for cc, c in enumerate(cols): - txt = unicode(r[c]) + if c == R_FACTS or c == R_COUNT: + txt = unicode("%15d" % r[c]) + else: + txt = unicode(r[c]) item = QTableWidgetItem(txt) item.setFlags(item.flags() & ~Qt.ItemIsEditable) self.items[item] = r