Make sure dirty flag gets set, and leave save enabled regardless.
Fixes https://gitlab.com/kicad/code/kicad/issues/11824
This commit is contained in:
parent
9a961d60d5
commit
09773e3e2e
|
@ -24,9 +24,8 @@
|
|||
*/
|
||||
|
||||
#include "footprint_editor_control.h"
|
||||
#include "kicad_clipboard.h"
|
||||
#include "wx/generic/textdlgg.h"
|
||||
#include "string_utils.h"
|
||||
#include <wx/generic/textdlgg.h>
|
||||
#include <string_utils.h>
|
||||
#include <pgm_base.h>
|
||||
#include <tool/tool_manager.h>
|
||||
#include <tools/pcb_actions.h>
|
||||
|
@ -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() )
|
||||
|
|
Loading…
Reference in New Issue