Fixed Kiway problems in SIM_PLOT_FRAME
This commit is contained in:
parent
549a96da0b
commit
2b1d2d7bd1
|
@ -97,7 +97,7 @@ static struct IFACE : public KIFACE_I
|
|||
|
||||
case FRAME_SIMULATOR:
|
||||
{
|
||||
SIM_PLOT_FRAME_BASE* frame = new SIM_PLOT_FRAME( aKiway, aParent );
|
||||
SIM_PLOT_FRAME* frame = new SIM_PLOT_FRAME( aKiway, aParent );
|
||||
return frame;
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -94,8 +94,10 @@ private:
|
|||
|
||||
|
||||
SIM_PLOT_FRAME::SIM_PLOT_FRAME( KIWAY* aKiway, wxWindow* aParent )
|
||||
: SIM_PLOT_FRAME_BASE( aKiway, aParent )
|
||||
: SIM_PLOT_FRAME_BASE( aParent )
|
||||
{
|
||||
SetKiway( this, aKiway );
|
||||
|
||||
m_exporter = NULL;
|
||||
m_simulator = NULL;
|
||||
m_simThread = NULL;
|
||||
|
|
|
@ -28,13 +28,8 @@
|
|||
|
||||
void SCH_EDIT_FRAME::OnSimulationRun( wxCommandEvent& event )
|
||||
{
|
||||
SIM_PLOT_FRAME* simFrame = (SIM_PLOT_FRAME*) Kiway().Player( FRAME_SIMULATOR, false );
|
||||
|
||||
if( !simFrame )
|
||||
{
|
||||
simFrame = (SIM_PLOT_FRAME*) Kiway().Player( FRAME_SIMULATOR, true );
|
||||
simFrame->Show( true );
|
||||
}
|
||||
SIM_PLOT_FRAME* simFrame = (SIM_PLOT_FRAME*) Kiway().Player( FRAME_SIMULATOR, true );
|
||||
simFrame->Show( true );
|
||||
|
||||
// On Windows, Raise() does not bring the window on screen, when iconized
|
||||
if( simFrame->IsIconized() )
|
||||
|
|
Loading…
Reference in New Issue