Set document dirty flag for various dialogs.
Fixes the callers of the Design Settings and Zone Settings dialogs. Fixes: lp:793420 * https://bugs.launchpad.net/kicad/+bug/793420
This commit is contained in:
parent
f76e7568bc
commit
b1b3a89f72
|
@ -283,6 +283,7 @@ bool DIALOG_GRAPHIC_ITEM_PROPERTIES::TransferDataFromWindow()
|
|||
m_parent->SetMsgPanel( m_item );
|
||||
|
||||
m_parent->SetDesignSettings( m_brdSettings );
|
||||
m_parent->OnModify();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -266,6 +266,7 @@ bool DIALOG_MODEDIT_FP_BODY_ITEM_PROPERTIES::TransferDataFromWindow()
|
|||
int thickness = ValueFromString( g_UserUnit, msg );
|
||||
m_brdSettings.m_ModuleSegmentWidth = thickness;
|
||||
m_parent->SetDesignSettings( m_brdSettings );
|
||||
m_parent->OnModify();
|
||||
|
||||
m_item->SetLayer( ToLAYER_ID( layer ) );
|
||||
|
||||
|
|
|
@ -134,6 +134,7 @@ void DIALOG_GRAPHIC_ITEMS_OPTIONS::OnOkClick( wxCommandEvent& event )
|
|||
g_DrawDefaultLineThickness = 0;
|
||||
|
||||
m_parent->SetDesignSettings( m_brdSettings );
|
||||
m_parent->OnModify();
|
||||
|
||||
EndModal( wxID_OK );
|
||||
}
|
||||
|
|
|
@ -132,6 +132,7 @@ void DIALOG_MODEDIT_OPTIONS::OnOkClick( wxCommandEvent& event )
|
|||
m_brdSettings.m_ValueDefaultVisibility = sel != 1;
|
||||
|
||||
m_parent->SetDesignSettings( m_brdSettings );
|
||||
m_parent->OnModify();
|
||||
|
||||
EndModal( wxID_OK );
|
||||
}
|
||||
|
|
|
@ -636,6 +636,7 @@ int PCB_EDIT_FRAME::Begin_Zone( wxDC* DC )
|
|||
// Switch active layer to the selected zone layer
|
||||
SetActiveLayer( zoneInfo.m_CurrentZone_Layer );
|
||||
SetZoneSettings( zoneInfo );
|
||||
OnModify();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -648,6 +649,7 @@ int PCB_EDIT_FRAME::Begin_Zone( wxDC* DC )
|
|||
zoneInfo << *s_CurrentZone;
|
||||
|
||||
SetZoneSettings( zoneInfo );
|
||||
OnModify();
|
||||
}
|
||||
|
||||
// Show the Net for zones on copper layers
|
||||
|
@ -911,6 +913,7 @@ void PCB_EDIT_FRAME::Edit_Zone_Params( wxDC* DC, ZONE_CONTAINER* aZone )
|
|||
}
|
||||
|
||||
SetZoneSettings( zoneInfo );
|
||||
OnModify();
|
||||
|
||||
if( edited == ZONE_EXPORT_VALUES )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue