mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
items in download browser shouldn't be editable
This commit is contained in:
parent
a910a99a77
commit
9d9f356479
1 changed files with 1 additions and 0 deletions
|
@ -87,6 +87,7 @@ class GetShared(QDialog):
|
||||||
for cc, c in enumerate(cols):
|
for cc, c in enumerate(cols):
|
||||||
txt = unicode(r[c])
|
txt = unicode(r[c])
|
||||||
item = QTableWidgetItem(txt)
|
item = QTableWidgetItem(txt)
|
||||||
|
item.setFlags(item.flags() & ~Qt.ItemIsEditable)
|
||||||
self.items[item] = r
|
self.items[item] = r
|
||||||
self.form.table.setItem(rc, cc, item)
|
self.form.table.setItem(rc, cc, item)
|
||||||
self.form.table.setSortingEnabled(True)
|
self.form.table.setSortingEnabled(True)
|
||||||
|
|
Loading…
Reference in a new issue