jdk/src/share/classes/java/awt/Dialog.java
changeset 16103 c9ffd920e3f0
parent 16100 379f48d34516
child 20172 f48935a247ec
--- a/jdk/src/share/classes/java/awt/Dialog.java	Fri Dec 07 22:49:08 2012 +0400
+++ b/jdk/src/share/classes/java/awt/Dialog.java	Wed Dec 12 21:08:19 2012 +0400
@@ -1638,12 +1638,13 @@
         if (localModalityType == null) {
             this.modal = fields.get("modal", false);
             setModal(modal);
+        } else {
+            this.modalityType = localModalityType;
         }
 
         this.resizable = fields.get("resizable", true);
         this.undecorated = fields.get("undecorated", false);
         this.title = (String)fields.get("title", "");
-        this.modalityType = localModalityType;
 
         blockedWindows = new IdentityArrayList<>();