]> source.dussan.org Git - vaadin-framework.git/commitdiff
setting main window in a cleaner manner when main window is not yet set
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 1 Feb 2008 14:29:31 +0000 (14:29 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 1 Feb 2008 14:29:31 +0000 (14:29 +0000)
svn changeset:3705/svn branch:trunk

src/com/itmill/toolkit/Application.java

index 2164cda9dcd03f09afbb37a19978101c41ca04b3..b9ba29e7e412a1551030c45744d4ee7123a27285 100644 (file)
@@ -287,7 +287,7 @@ public abstract class Application implements URIHandler, Terminal.ErrorListener
 
         // If no main window is set, declare the window to be main window
         if (getMainWindow() == null) {
-            setMainWindow(window);
+            mainWindow = window;
         }
     }