mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
don't die if there's only one field
This commit is contained in:
parent
6f9e92e855
commit
4c6301d3ca
1 changed files with 2 additions and 1 deletions
|
@ -429,7 +429,8 @@ class FactEditor(object):
|
|||
extra = -1
|
||||
tagsw = self.tagsLabel.sizeHint().width()
|
||||
self.tagsLabel.setFixedWidth(max(tagsw,
|
||||
max(*[l.width() for l in self.labels]))
|
||||
max(*([
|
||||
l.width() for l in self.labels] + [0])))
|
||||
+ extra)
|
||||
self.parent.setTabOrder(last, self.tags)
|
||||
|
||||
|
|
Loading…
Reference in a new issue