Fix previewer runtime error "deleted" (#1830)

This commit is contained in:
RumovZ 2022-05-02 02:40:44 +02:00 committed by GitHub
parent a3d9a25d18
commit 1e02980133
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,7 +106,7 @@ class Previewer(QDialog):
def _on_finished(self, ok: int) -> None: def _on_finished(self, ok: int) -> None:
saveGeom(self, "preview") saveGeom(self, "preview")
self.mw.progress.single_shot(100, self._on_close) self._on_close()
def _on_replay_audio(self) -> None: def _on_replay_audio(self) -> None:
if self._state == "question": if self._state == "question":