Comment 6 for bug 793420

Revision history for this message
Wayne Stambaugh (stambaughw) wrote : Re: [Bug 793420] Re: Modifying a board preferences don't set the 'unsaved' flag

A better short term solution would be to push the modified status down
to at least PCB_BASE_FRAME::SetDesignSettings() by first comparing the
new BOARD_DESIGN_SETTINGs against the existing ones in the board and
setting the modified flag accordingly to prevent false positives. Like
this:

void PCB_BASE_FRAME::SetDesignSettings( const BOARD_DESIGN_SETTINGS&
aSettings )
{
    wxASSERT( m_Pcb );

    if( m_Pcb->GetDesignSettings() != aSettings )
    {
        m_Pcb->SetDesignSettings( aSettings );
        OnModify();
    }
}

The ideal long term solution would be to keep track of the board
modification state within the BOARD object as it's modified but that is
a much more involved task.

On 9/22/2015 1:08 PM, Stefan wrote:
> oups
>
> It should be
> A)
> All the values in Grid/Pads/Pad Mask Clearance/Differental Paris
> are saved in the .pro file and does not affect the .kicad_pcb
>
> B)
> All the values in "Texts And Drawings" is on the other hand
> saved in the .kicad_pcb file.
>