Moving IsOk dialogs to correct parents
This commit is contained in:
parent
626c8a71f7
commit
794e8d8a04
|
@ -183,7 +183,7 @@ bool SCH_EDIT_FRAME::prepareForNetlist()
|
|||
// Test duplicate sheet names:
|
||||
if( TestDuplicateSheetNames( false ) > 0 )
|
||||
{
|
||||
if( !IsOK( NULL, _( "Error: duplicate sheet names. Continue?" ) ) )
|
||||
if( !IsOK( this, _( "Error: duplicate sheet names. Continue?" ) ) )
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -235,7 +235,7 @@ bool DIALOG_MODEDIT_FP_BODY_ITEM_PROPERTIES::TransferDataFromWindow()
|
|||
// This is sometimes useful, for instance for microwave applications ans net tees.
|
||||
// Because the DRC does not handle graphic items, it can break boards.
|
||||
// Therefore a confirmation is requested
|
||||
if( !IsOK( NULL,
|
||||
if( !IsOK( this,
|
||||
_( "The graphic item will be on a copper layer.\n"
|
||||
"This is very dangerous because DRC does not handle it.\n"
|
||||
"Are you sure?" ) ) )
|
||||
|
|
|
@ -82,7 +82,7 @@ void PCB_EDIT_FRAME::InstallNetlistFrame( wxDC* DC )
|
|||
bool configChanged = !GetLastNetListRead().IsEmpty() && ( netlistName != GetLastNetListRead() );
|
||||
|
||||
if( configChanged && !GetBoard()->GetFileName().IsEmpty()
|
||||
&& IsOK( NULL, _( "The project configuration has changed. Do you want to save it?" ) ) )
|
||||
&& IsOK( this, _( "The project configuration has changed. Do you want to save it?" ) ) )
|
||||
{
|
||||
fn = Prj().AbsolutePath( GetBoard()->GetFileName() );
|
||||
fn.SetExt( ProjectFileExtension );
|
||||
|
@ -177,7 +177,7 @@ void DIALOG_NETLIST::OnReadNetlistFileClick( wxCommandEvent& event )
|
|||
// Give the user a chance to bail out when making changes from a netlist.
|
||||
if( !m_checkDryRun->GetValue() && !m_silentMode
|
||||
&& !m_parent->GetBoard()->IsEmpty()
|
||||
&& !IsOK( NULL, _( "The changes made by reading the netlist cannot be undone. Are you "
|
||||
&& !IsOK( this, _( "The changes made by reading the netlist cannot be undone. Are you "
|
||||
"sure you want to read the netlist?" ) ) )
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue