Eeschema: Set "edited" flag on newly created sheets
Forces newly created sheet to be considered for saving when created. Fixes: lp:1736054 * https://bugs.launchpad.net/kicad/+bug/1736054
This commit is contained in:
parent
bdc1fb04be
commit
8b68a1736a
|
@ -143,6 +143,7 @@ bool SCH_EDIT_FRAME::EditSheet( SCH_SHEET* aSheet, SCH_SHEET_PATH* aHierarchy )
|
|||
else // New file.
|
||||
{
|
||||
aSheet->SetScreen( new SCH_SCREEN( &Kiway() ) );
|
||||
aSheet->GetScreen()->SetModify();
|
||||
aSheet->GetScreen()->SetMaxUndoItems( m_UndoRedoCountMax );
|
||||
aSheet->GetScreen()->SetFileName( newFilename );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue