mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
process the widget deletions before deleting the layout
This commit is contained in:
parent
49c92b9605
commit
9491acc088
1 changed files with 1 additions and 0 deletions
|
@ -1192,6 +1192,7 @@ your deck."""))
|
|||
break
|
||||
if obj.widget():
|
||||
obj.widget().deleteLater()
|
||||
self.app.processEvents(QEventLoop.DeferredDeletion)
|
||||
sip.delete(self.decksFrame.layout())
|
||||
# build new layout
|
||||
layout = QGridLayout()
|
||||
|
|
Loading…
Reference in a new issue