Enable Save As for footprints with no current library.

Fixes: lp:1840997
* https://bugs.launchpad.net/kicad/+bug/1840997
This commit is contained in:
Jeff Young 2019-08-23 10:56:28 +01:00
parent d080c928a7
commit 32aa265175
1 changed files with 3 additions and 3 deletions

View File

@ -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 ----------------------------------------------------------