From 9491acc0886f1f1846de015e80c4000a2c09f454 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 27 Jul 2010 21:02:45 +0900 Subject: [PATCH] process the widget deletions before deleting the layout --- ankiqt/ui/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 098b37dc2..dee139c9c 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -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()