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:
Seth Hillbrand 2017-12-04 13:43:34 -08:00 committed by Wayne Stambaugh
parent bdc1fb04be
commit 8b68a1736a
1 changed files with 1 additions and 0 deletions

View File

@ -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 );
}