Merge pull request #244 from glutanimate/fix-togglefield-reset
Make sure to end model reset when prematurely returning from toggleField
This commit is contained in:
commit
5f9a8f7960
@ -736,6 +736,7 @@ by clicking on one on the left."""))
|
|||||||
self.model.beginReset()
|
self.model.beginReset()
|
||||||
if type in self.model.activeCols:
|
if type in self.model.activeCols:
|
||||||
if len(self.model.activeCols) < 2:
|
if len(self.model.activeCols) < 2:
|
||||||
|
self.model.endReset()
|
||||||
return showInfo(_("You must have at least one column."))
|
return showInfo(_("You must have at least one column."))
|
||||||
self.model.activeCols.remove(type)
|
self.model.activeCols.remove(type)
|
||||||
adding=False
|
adding=False
|
||||||
|
Loading…
Reference in New Issue
Block a user