From 32aa26517553d54f24b3c4e61e37c4e8b6eaf2c9 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 23 Aug 2019 10:56:28 +0100 Subject: [PATCH] Enable Save As for footprints with no current library. Fixes: lp:1840997 * https://bugs.launchpad.net/kicad/+bug/1840997 --- pcbnew/menubar_footprint_editor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcbnew/menubar_footprint_editor.cpp b/pcbnew/menubar_footprint_editor.cpp index 755ea396f2..c9ee37f964 100644 --- a/pcbnew/menubar_footprint_editor.cpp +++ b/pcbnew/menubar_footprint_editor.cpp @@ -50,11 +50,11 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar() auto modifiedDocumentCondition = [this]( const SELECTION& sel ) { return !GetBoard()->Modules().empty() && GetScreen()->IsModify(); }; - auto haveFootprintCondition = [ this ] ( const SELECTION& aSelection ) { + auto haveFootprintCondition = [this]( const SELECTION& aSelection ) { return GetBoard()->GetFirstModule() != nullptr; }; - auto footprintTargettedCondition = [ this ] ( const SELECTION& aSelection ) { - return GetTargetFPID().IsValid(); + auto footprintTargettedCondition = [this]( const SELECTION& aSelection ) { + return !GetTargetFPID().GetLibItemName().empty(); }; //-- File menu ----------------------------------------------------------