From 1e02980133b52b2571883b3a844149871fd2e7e2 Mon Sep 17 00:00:00 2001 From: RumovZ Date: Mon, 2 May 2022 02:40:44 +0200 Subject: [PATCH] Fix previewer runtime error "deleted" (#1830) --- qt/aqt/browser/previewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/browser/previewer.py b/qt/aqt/browser/previewer.py index fb36c4def..c3eaf573b 100644 --- a/qt/aqt/browser/previewer.py +++ b/qt/aqt/browser/previewer.py @@ -106,7 +106,7 @@ class Previewer(QDialog): def _on_finished(self, ok: int) -> None: saveGeom(self, "preview") - self.mw.progress.single_shot(100, self._on_close) + self._on_close() def _on_replay_audio(self) -> None: if self._state == "question":