From a41da29828892fcd9f62edcf561e236b346e85e9 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Mon, 4 May 2020 19:24:24 +0200 Subject: [PATCH] WaitingDialog: fix dispose --- src/be/nikiroo/utils/ui/WaitingDialog.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/be/nikiroo/utils/ui/WaitingDialog.java b/src/be/nikiroo/utils/ui/WaitingDialog.java index 7df5a8b5..0fd4574d 100644 --- a/src/be/nikiroo/utils/ui/WaitingDialog.java +++ b/src/be/nikiroo/utils/ui/WaitingDialog.java @@ -163,7 +163,6 @@ public class WaitingDialog extends JDialog { synchronized (waitLock) { if (waitScreen) { setVisible(false); - dispose(); } waitScreen = true; } @@ -171,5 +170,7 @@ public class WaitingDialog extends JDialog { if (pg != null) { pg.removeProgressListener(pgl); } + + dispose(); } } -- 2.27.0