Better handling of pipe switching during the loading of a relax state.
The _switch_flag class variable has been introduced as a wx.Notebook.AddPage() call triggers on_page_change() which will then switch pipes if the current page does not match cdp!
Authored by: bugman 2011-07-14
Parent: [r13628]
Child: [r13630]