mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
fix sorting in deck/plugin browser
This commit is contained in:
parent
69e9cb3874
commit
01965922c1
1 changed files with 4 additions and 1 deletions
|
@ -94,7 +94,10 @@ class GetShared(QDialog):
|
||||||
cols = (R_TITLE, R_COUNT)
|
cols = (R_TITLE, R_COUNT)
|
||||||
for rc, r in enumerate(self.curList):
|
for rc, r in enumerate(self.curList):
|
||||||
for cc, c in enumerate(cols):
|
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 = QTableWidgetItem(txt)
|
||||||
item.setFlags(item.flags() & ~Qt.ItemIsEditable)
|
item.setFlags(item.flags() & ~Qt.ItemIsEditable)
|
||||||
self.items[item] = r
|
self.items[item] = r
|
||||||
|
|
Loading…
Reference in a new issue