|
|
@ -265,6 +265,10 @@ bool PCB_EDIT_FRAME::Files_io_from_id( int id ) |
|
|
|
{ |
|
|
|
case ID_LOAD_FILE: |
|
|
|
{ |
|
|
|
// Only standalone mode can directly load a new document
|
|
|
|
if( !Kiface().IsSingle() ) |
|
|
|
return false; |
|
|
|
|
|
|
|
int open_ctl = KICTL_KICAD_ONLY; |
|
|
|
wxString fileName = Prj().AbsolutePath( GetBoard()->GetFileName() ); |
|
|
|
|
|
|
@ -274,6 +278,10 @@ bool PCB_EDIT_FRAME::Files_io_from_id( int id ) |
|
|
|
|
|
|
|
case ID_IMPORT_NON_KICAD_BOARD: |
|
|
|
{ |
|
|
|
// Only standalone mode can directly load a new document
|
|
|
|
if( !Kiface().IsSingle() ) |
|
|
|
return false; |
|
|
|
|
|
|
|
int open_ctl = KICTL_NONKICAD_ONLY; |
|
|
|
wxString fileName; // = Prj().AbsolutePath( GetBoard()->GetFileName() );
|
|
|
|
|
|
|
@ -332,6 +340,10 @@ bool PCB_EDIT_FRAME::Files_io_from_id( int id ) |
|
|
|
|
|
|
|
case ID_NEW_BOARD: |
|
|
|
{ |
|
|
|
// Only standalone mode can directly load a new document
|
|
|
|
if( !Kiface().IsSingle() ) |
|
|
|
return false; |
|
|
|
|
|
|
|
if( IsContentModified() ) |
|
|
|
{ |
|
|
|
wxFileName fileName = GetBoard()->GetFileName(); |
|
|
@ -1353,4 +1365,4 @@ void PCB_EDIT_FRAME::GenIPC2581File( wxCommandEvent& event ) |
|
|
|
} |
|
|
|
|
|
|
|
GetScreen()->SetContentModified( false ); |
|
|
|
} |
|
|
|
} |