diff --git a/pcbnew/tools/footprint_editor_control.cpp b/pcbnew/tools/footprint_editor_control.cpp index 8be0316dd5..12897e3a20 100644 --- a/pcbnew/tools/footprint_editor_control.cpp +++ b/pcbnew/tools/footprint_editor_control.cpp @@ -24,9 +24,8 @@ */ #include "footprint_editor_control.h" -#include "kicad_clipboard.h" -#include "wx/generic/textdlgg.h" -#include "string_utils.h" +#include +#include #include #include #include @@ -121,7 +120,7 @@ bool FOOTPRINT_EDITOR_CONTROL::Init() ctxMenu.AddItem( PCB_ACTIONS::createFootprint, libSelectedCondition ); ctxMenu.AddSeparator(); - ctxMenu.AddItem( ACTIONS::save, libSelectedCondition || libInferredCondition ); + ctxMenu.AddItem( ACTIONS::save, SELECTION_CONDITIONS::ShowAlways ); ctxMenu.AddItem( ACTIONS::saveAs, libSelectedCondition || fpSelectedCondition ); ctxMenu.AddItem( ACTIONS::revert, libSelectedCondition || libInferredCondition ); @@ -226,6 +225,7 @@ int FOOTPRINT_EDITOR_CONTROL::CreateFootprint( const TOOL_EVENT& aEvent ) m_frame->Zoom_Automatique( false ); m_frame->GetScreen()->SetContentModified(); + m_frame->OnModify(); // If selected from the library tree then go ahead and save it there if( !selected.GetLibNickname().empty() )