Symbol editor, fix saving legacy symbol library bug.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/6157
This commit is contained in:
parent
5a644aa3fb
commit
9101e61c06
|
@ -903,6 +903,7 @@ bool LIB_EDIT_FRAME::saveAllLibraries( bool aRequireConfirmation )
|
||||||
bool doSave = true;
|
bool doSave = true;
|
||||||
int dirtyCount = 0;
|
int dirtyCount = 0;
|
||||||
bool applyToAll = false;
|
bool applyToAll = false;
|
||||||
|
bool retv = true;
|
||||||
|
|
||||||
for( const auto& libNickname : m_libMgr->GetLibraryNames() )
|
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 "
|
msg.Printf( _( "Library \"%s\" is read only and must be saved as a "
|
||||||
"different library." ), libNickname );
|
"different library." ), libNickname );
|
||||||
m_infoBar->ShowMessageFor( msg, 3000, wxICON_EXCLAMATION );
|
m_infoBar->ShowMessageFor( msg, 3000, wxICON_EXCLAMATION );
|
||||||
|
retv = false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -944,10 +946,10 @@ bool LIB_EDIT_FRAME::saveAllLibraries( bool aRequireConfirmation )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if( !saveLibrary( libNickname, true ) )
|
if( !saveLibrary( libNickname, true ) )
|
||||||
return false;
|
retv = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return retv;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue