From: Niki Roo Date: Mon, 4 May 2020 17:24:24 +0000 (+0200) Subject: WaitingDialog: fix dispose X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=aacb3d83d84bdffce0b07a039767bcb0f59752c2;p=fanfix-jexer.git WaitingDialog: fix dispose --- diff --git a/ui/WaitingDialog.java b/ui/WaitingDialog.java index 7df5a8b..0fd4574 100644 --- a/ui/WaitingDialog.java +++ b/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(); } }