Symbol editor: enable save command when only libraries are modified.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/6445
This commit is contained in:
Wayne Stambaugh 2020-12-03 08:17:09 -05:00
parent cf6620f8fa
commit fd3348690d
1 changed files with 3 additions and 2 deletions

View File

@ -361,8 +361,9 @@ void SYMBOL_EDIT_FRAME::setupUIConditions()
mgr->SetConditions( ACTIONS::saveAll, mgr->SetConditions( ACTIONS::saveAll,
ENABLE( libMgrModifiedCond ) ); ENABLE( libMgrModifiedCond ) );
mgr->SetConditions( ACTIONS::save, mgr->SetConditions( ACTIONS::save,
ENABLE( haveSymbolCond && modifiedDocumentCondition ) ); ENABLE( libMgrModifiedCond ||
mgr->SetConditions( EE_ACTIONS::saveInSchematic, ENABLE( libMgrModifiedCond ) ); ( haveSymbolCond && modifiedDocumentCondition ) ) );
mgr->SetConditions( EE_ACTIONS::saveInSchematic, ENABLE( libMgrModifiedCond ) );
mgr->SetConditions( ACTIONS::undo, mgr->SetConditions( ACTIONS::undo,
ENABLE( haveSymbolCond && cond.UndoAvailable() ) ); ENABLE( haveSymbolCond && cond.UndoAvailable() ) );
mgr->SetConditions( ACTIONS::redo, mgr->SetConditions( ACTIONS::redo,