Browse Source

Symbol editor, fix saving legacy symbol library bug.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/6157
6.0.7
Wayne Stambaugh 5 years ago
parent
commit
9101e61c06
  1. 6
      eeschema/libedit/libedit.cpp

6
eeschema/libedit/libedit.cpp

@ -903,6 +903,7 @@ bool LIB_EDIT_FRAME::saveAllLibraries( bool aRequireConfirmation )
bool doSave = true;
int dirtyCount = 0;
bool applyToAll = false;
bool retv = true;
for( const auto& libNickname : m_libMgr->GetLibraryNames() )
{
@ -937,6 +938,7 @@ bool LIB_EDIT_FRAME::saveAllLibraries( bool aRequireConfirmation )
msg.Printf( _( "Library \"%s\" is read only and must be saved as a "
"different library." ), libNickname );
m_infoBar->ShowMessageFor( msg, 3000, wxICON_EXCLAMATION );
retv = false;
continue;
}
@ -944,10 +946,10 @@ bool LIB_EDIT_FRAME::saveAllLibraries( bool aRequireConfirmation )
continue;
if( !saveLibrary( libNickname, true ) )
return false;
retv = false;
}
}
}
return true;
return retv;
}
Loading…
Cancel
Save