diff --git a/eeschema/sim/simulator_frame.cpp b/eeschema/sim/simulator_frame.cpp index 67891a3671..c6185b8538 100644 --- a/eeschema/sim/simulator_frame.cpp +++ b/eeschema/sim/simulator_frame.cpp @@ -406,8 +406,9 @@ void SIMULATOR_FRAME::StartSimulation() if( m_panel->GetPlotIndex( plotPanel ) == 0 && m_circuitModel->GetSchTextSimCommand() != plotPanel->GetLastSchTextSimCommand() ) { - if( IsOK( this, _( "Schematic sheet simulation command directive has changed. " - "Do you wish to update the Simulation Command?" ) ) ) + if( plotPanel->GetLastSchTextSimCommand().IsEmpty() + || IsOK( this, _( "Schematic sheet simulation command directive has changed. " + "Do you wish to update the Simulation Command?" ) ) ) { plotPanel->SetSimCommand( m_circuitModel->GetSchTextSimCommand() ); plotPanel->SetLastSchTextSimCommand( plotPanel->GetSimCommand() );