[Greater-commits] r3615 - trunk/GREAT-ER/Thuban/UI

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Jul 18 17:34:34 CEST 2011


Author: aheinecke
Date: 2011-07-18 17:34:33 +0200 (Mon, 18 Jul 2011)
New Revision: 3615

Modified:
   trunk/GREAT-ER/Thuban/UI/application.py
Log:
Create the session after the MainWindow is created this gives the
MainWindow the chance to handle the initial SESSION_REPLACED message
and register for further Messages from that initial session.


Modified: trunk/GREAT-ER/Thuban/UI/application.py
===================================================================
--- trunk/GREAT-ER/Thuban/UI/application.py	2011-07-18 14:59:06 UTC (rev 3614)
+++ trunk/GREAT-ER/Thuban/UI/application.py	2011-07-18 15:34:33 UTC (rev 3615)
@@ -73,7 +73,6 @@
 
         self.session = None
         self.top = None
-        self.create_session()
 
         # Create an optional splash screen and then the mainwindow
         self.splash = self.splash_screen()
@@ -82,6 +81,7 @@
         self.read_startup_files()
         self.init_extensions()
         self.top = self.CreateMainWindow()
+        self.create_session()
         # The session was alredy created above and we need to get the
         # map into the mainwindow.  maps_changed does that.
         self.maps_changed()



More information about the Greater-commits mailing list