process the widget deletions before deleting the layout

This commit is contained in:
Damien Elmes 2010-07-27 21:02:45 +09:00
parent 49c92b9605
commit 9491acc088

View file

@ -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()