From fd3348690d0d9e14e784ff6d4c16a0818737b270 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Thu, 3 Dec 2020 08:17:09 -0500 Subject: [PATCH] Symbol editor: enable save command when only libraries are modified. Fixes https://gitlab.com/kicad/code/kicad/-/issues/6445 --- eeschema/symbol_editor/symbol_edit_frame.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eeschema/symbol_editor/symbol_edit_frame.cpp b/eeschema/symbol_editor/symbol_edit_frame.cpp index 8c6368fcc0..4c83458c72 100644 --- a/eeschema/symbol_editor/symbol_edit_frame.cpp +++ b/eeschema/symbol_editor/symbol_edit_frame.cpp @@ -361,8 +361,9 @@ void SYMBOL_EDIT_FRAME::setupUIConditions() mgr->SetConditions( ACTIONS::saveAll, ENABLE( libMgrModifiedCond ) ); mgr->SetConditions( ACTIONS::save, - ENABLE( haveSymbolCond && modifiedDocumentCondition ) ); - mgr->SetConditions( EE_ACTIONS::saveInSchematic, ENABLE( libMgrModifiedCond ) ); + ENABLE( libMgrModifiedCond || + ( haveSymbolCond && modifiedDocumentCondition ) ) ); + mgr->SetConditions( EE_ACTIONS::saveInSchematic, ENABLE( libMgrModifiedCond ) ); mgr->SetConditions( ACTIONS::undo, ENABLE( haveSymbolCond && cond.UndoAvailable() ) ); mgr->SetConditions( ACTIONS::redo,