From e16a2ef80ad9c500b5f3c85834a48b9f4e3ed9ec Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 23 Aug 2018 19:41:24 +0100 Subject: [PATCH] Fix misleading warning regarding replacing library. Fixes: lp:1788489 * https://bugs.launchpad.net/kicad/+bug/1788489 --- eeschema/lib_export.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/eeschema/lib_export.cpp b/eeschema/lib_export.cpp index 9960fb51f3..ff788da798 100644 --- a/eeschema/lib_export.cpp +++ b/eeschema/lib_export.cpp @@ -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();