Fix bug Bug #1432165 (fp lib table dialog editor not shown on XFCE and Unity)
Cvpcb: Shows a better message when a netlist is not found.
This commit is contained in:
parent
f743b98844
commit
efe5658a9b
|
@ -799,6 +799,15 @@ int CVPCB_MAINFRAME::ReadSchematicNetlist()
|
|||
wxString compFootprintLinkFileName;
|
||||
wxFileName fn = m_NetlistFileName;
|
||||
|
||||
// Ensure the netlist file exists, and wran the user if not:
|
||||
if( ! wxFileExists( m_NetlistFileName.GetFullPath() ) )
|
||||
{
|
||||
msg.Printf( _( "Unable to find netlist file:\n'%s'\n\nPlease, create it" ),
|
||||
GetChars( m_NetlistFileName.GetFullPath() ) );
|
||||
wxMessageBox( msg, _( "Netlist Load Error" ), wxOK | wxICON_ERROR );
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Load the footprint association file if it has already been created.
|
||||
fn.SetExt( ComponentFileExtension );
|
||||
|
||||
|
|
|
@ -51,9 +51,11 @@ DIALOG_LIB_EDIT_PIN::DIALOG_LIB_EDIT_PIN( EDA_DRAW_FRAME* parent, LIB_PIN* aPin
|
|||
m_sdbSizerButtonsOK->SetDefault();
|
||||
|
||||
GetSizer()->SetSizeHints( this );
|
||||
Raise(); // On Unity, ans some other windows manager,
|
||||
// this dialog is not always shown,
|
||||
// depending on this dialog is run. Force it to be shown
|
||||
|
||||
// On some windows manager (Unity, XFCE), this dialog is
|
||||
// not always raised, depending on this dialog is run.
|
||||
// Force it to be raised
|
||||
Raise();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -369,6 +369,11 @@ public:
|
|||
|
||||
// for ALT+A handling, we want the initial focus to be on the first selected grid.
|
||||
m_cur_grid->SetFocus();
|
||||
|
||||
// On some windows manager (Unity, XFCE), this dialog is
|
||||
// not always raised, depending on this dialog is run.
|
||||
// Force it to be raised
|
||||
Raise();
|
||||
}
|
||||
|
||||
~DIALOG_FP_LIB_TABLE()
|
||||
|
|
Loading…
Reference in New Issue