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