harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r585981 - /harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/ModalContext.java
Date Thu, 18 Oct 2007 14:42:15 GMT
Author: apetrenko
Date: Thu Oct 18 07:42:15 2007
New Revision: 585981

URL: http://svn.apache.org/viewvc?rev=585981&view=rev
Log:
Patch for HARMONY-4838 "[classlib][swing] hang up when call 
JDialog.setVisible"

Modified:
    harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/ModalContext.java

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/ModalContext.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/ModalContext.java?rev=585981&r1=585980&r2=585981&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/ModalContext.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/ModalContext.java
Thu Oct 18 07:42:15 2007
@@ -39,8 +39,10 @@
      *
      */
     void runModalLoop() {
-        running = true;
-        toolkit.dispatchThread.runModalLoop(this);
+    	if(!running) {
+    		running = true;
+    		toolkit.dispatchThread.runModalLoop(this);
+    	}
     }
 
     /**



Mime
View raw message