mirror of
https://github.com/ankitects/anki.git
synced 2026-01-14 06:23:57 -05:00
Make sure to end model reset when prematurely returning from toggleField
Fixes an issue where Anki would stall after trying to remove the last browser column.
This commit is contained in:
parent
9a0a3a2674
commit
574edf9d2c
1 changed files with 1 additions and 0 deletions
|
|
@ -735,6 +735,7 @@ by clicking on one on the left."""))
|
|||
self.model.beginReset()
|
||||
if type in self.model.activeCols:
|
||||
if len(self.model.activeCols) < 2:
|
||||
self.model.endReset()
|
||||
return showInfo(_("You must have at least one column."))
|
||||
self.model.activeCols.remove(type)
|
||||
adding=False
|
||||
|
|
|
|||
Loading…
Reference in a new issue