2002/09/15 23:36:01
[org.ibex.core.git] / src / org / xwt / Surface.java
index 5b2f205..167a5f4 100644 (file)
@@ -381,15 +381,12 @@ public abstract class Surface {
         _dispose();
 
         // quit when all windows are closed
-        if (allSurfaces.size() == 0 && quitIfAllSurfacesGone) {
-            throw new Error();
-            /*
+        if (allSurfaces.size() == 0 && quitIfAllSurfacesGone && Main.doneInitializing) {
             if (Log.on) {
                 if (refreshableSurfaceWasCreated) Log.log(this, "exiting because last remaining surface was disposed");
                 else Log.log(this, "exiting because no surface was ever created");
             }
             Platform.exit();
-            */
         }
     }