Fix misleading warning regarding replacing library.

Fixes: lp:1788489
* https://bugs.launchpad.net/kicad/+bug/1788489
This commit is contained in:
Jeff Young 2018-08-23 19:41:24 +01:00
parent 00b2c21820
commit e16a2ef80a
1 changed files with 5 additions and 2 deletions

View File

@ -114,7 +114,7 @@ void LIB_EDIT_FRAME::OnExportPart( wxCommandEvent& event )
fn.SetExt( SchematicLibraryFileExtension );
wxFileDialog dlg( this, _( "Export Symbol" ), m_mruPath, fn.GetFullName(),
SchematicLibraryFileWildcard(), wxFD_SAVE | wxFD_OVERWRITE_PROMPT );
SchematicLibraryFileWildcard(), wxFD_SAVE );
if( dlg.ShowModal() == wxID_CANCEL )
return;
@ -145,7 +145,10 @@ void LIB_EDIT_FRAME::OnExportPart( wxCommandEvent& event )
if( old_part )
{
msg.Printf( _( "Symbol \"%s\" already exists." ), part->GetName() );
msg.Printf( _( "Symbol \"%s\" already exists in \"%s\"." ),
part->GetName(),
fn.GetFullName() );
KIDIALOG errorDlg( this, msg, _( "Confirmation" ), wxOK | wxCANCEL | wxICON_WARNING );
errorDlg.SetOKLabel( _( "Overwrite" ) );
errorDlg.DoNotShowCheckbox();