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
|
break
|
||||||
if obj.widget():
|
if obj.widget():
|
||||||
obj.widget().deleteLater()
|
obj.widget().deleteLater()
|
||||||
|
self.app.processEvents(QEventLoop.DeferredDeletion)
|
||||||
sip.delete(self.decksFrame.layout())
|
sip.delete(self.decksFrame.layout())
|
||||||
# build new layout
|
# build new layout
|
||||||
layout = QGridLayout()
|
layout = QGridLayout()
|
||||||
|
|
Loading…
Reference in a new issue