From 43befcda14beba9673f5936b5e7fa91b46772570 Mon Sep 17 00:00:00 2001 From: buddsean Date: Wed, 12 May 2021 12:00:04 +1000 Subject: [PATCH] prevent ExitDialog from being destroyed twice --- source/gui/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/source/gui/__init__.py b/source/gui/__init__.py index 9aaab0b7a87..488cdcfa5d7 100644 --- a/source/gui/__init__.py +++ b/source/gui/__init__.py @@ -694,6 +694,7 @@ def onOk(self, evt): action += 1 if action == 0: core.triggerNVDAExit() + return # there's no need to destroy ExitDialog in this instance as triggerNVDAExit will do this elif action == 1: queueHandler.queueFunction(queueHandler.eventQueue,core.restart) elif action == 2: