Log Message: |
Fix for RT#2245
* Thuban/UI/application.py (ThubanApplication.OnInit): Initialize
instance variables before trying to create any windows. Creating
windows can start an event loop if e.g. message boxes are popped
up for some reason, and event handlers, especially EVT_UPDATE_UI
may want to access things from the application.
(ThubanApplication.maps_changed): The mainwindow may not have been
created yet, so check whether it has been created before calling
its methods
* Thuban/UI/view.py (MapCanvas.OnIdle): Only try to redraw if we
have a map
|