summaryrefslogtreecommitdiff
path: root/NET/worlds/console/PolledDialog.java
diff options
context:
space:
mode:
Diffstat (limited to 'NET/worlds/console/PolledDialog.java')
-rw-r--r--NET/worlds/console/PolledDialog.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/NET/worlds/console/PolledDialog.java b/NET/worlds/console/PolledDialog.java
index 0f26bc0..0586ddd 100644
--- a/NET/worlds/console/PolledDialog.java
+++ b/NET/worlds/console/PolledDialog.java
@@ -124,7 +124,7 @@ public abstract class PolledDialog extends Dialog implements MainCallback, Dialo
if (this.toBeDisposed) {
this.setVisible(false);
this.parent.requestFocus();
- if (this.getPeer() != null) {
+ if (this.isDisplayable()) {
this.dispose();
}