mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 10:13:19 +02:00
Improved error message.
This commit is contained in:
parent
22947c840d
commit
86a8bc3a1f
@ -343,8 +343,7 @@ void DIALOG_SYMBOL_FIELDS_TABLE::SetupColumnProperties( int aCol )
|
|||||||
else if( m_dataModel->GetColFieldName( aCol ) == GetCanonicalFieldName( DATASHEET_FIELD ) )
|
else if( m_dataModel->GetColFieldName( aCol ) == GetCanonicalFieldName( DATASHEET_FIELD ) )
|
||||||
{
|
{
|
||||||
// set datasheet column viewer button
|
// set datasheet column viewer button
|
||||||
attr->SetEditor(
|
attr->SetEditor( new GRID_CELL_URL_EDITOR( this, PROJECT_SCH::SchSearchS( &Prj() ) ) );
|
||||||
new GRID_CELL_URL_EDITOR( this, PROJECT_SCH::SchSearchS( &Prj() ) ) );
|
|
||||||
m_grid->SetColAttr( aCol, attr );
|
m_grid->SetColAttr( aCol, attr );
|
||||||
}
|
}
|
||||||
else if( m_dataModel->ColIsQuantity( aCol ) || m_dataModel->ColIsItemNumber( aCol ) )
|
else if( m_dataModel->ColIsQuantity( aCol ) || m_dataModel->ColIsItemNumber( aCol ) )
|
||||||
@ -1268,7 +1267,7 @@ void DIALOG_SYMBOL_FIELDS_TABLE::OnExport( wxCommandEvent& aEvent )
|
|||||||
|
|
||||||
if( path.IsEmpty() )
|
if( path.IsEmpty() )
|
||||||
{
|
{
|
||||||
DisplayError( this, _( "No filename specified in exporter" ) );
|
DisplayError( this, _( "No output file specified in Export tab." ) );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1382,9 +1381,7 @@ void DIALOG_SYMBOL_FIELDS_TABLE::OnClose( wxCloseEvent& aEvent )
|
|||||||
|
|
||||||
wxCommandEvent* evt = new wxCommandEvent( EDA_EVT_CLOSE_DIALOG_SYMBOL_FIELDS_TABLE, wxID_ANY );
|
wxCommandEvent* evt = new wxCommandEvent( EDA_EVT_CLOSE_DIALOG_SYMBOL_FIELDS_TABLE, wxID_ANY );
|
||||||
|
|
||||||
wxWindow* parent = GetParent();
|
if( wxWindow* parent = GetParent() )
|
||||||
|
|
||||||
if( parent )
|
|
||||||
wxQueueEvent( parent, evt );
|
wxQueueEvent( parent, evt );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user