mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
accept separators
This commit is contained in:
parent
b25330a02e
commit
719ded9efb
1 changed files with 5 additions and 1 deletions
|
@ -45,7 +45,11 @@ class DeckConf(QDialog):
|
||||||
import anki.consts as cs
|
import anki.consts as cs
|
||||||
f = self.form
|
f = self.form
|
||||||
d = self.dynExamples = cs.dynExamples()
|
d = self.dynExamples = cs.dynExamples()
|
||||||
f.examples.addItems([x[0] for x in d])
|
for c, row in enumerate(d):
|
||||||
|
if not row:
|
||||||
|
f.examples.insertSeparator(c)
|
||||||
|
else:
|
||||||
|
f.examples.addItem(row[0])
|
||||||
self.connect(f.examples, SIGNAL("activated(int)"),
|
self.connect(f.examples, SIGNAL("activated(int)"),
|
||||||
self.onExample)
|
self.onExample)
|
||||||
# we'll need to reset whenever something is changed
|
# we'll need to reset whenever something is changed
|
||||||
|
|
Loading…
Reference in a new issue