Don't set dirty bit when adding MARKERs.
They're not saved in the file, so they shouldn't dirty it. Fixes: lp:1762497 * https://bugs.launchpad.net/kicad/+bug/1762497
This commit is contained in:
@@ -56,7 +56,7 @@ BOARD_COMMIT::~BOARD_COMMIT()
|
||||
}
|
||||
|
||||
|
||||
void BOARD_COMMIT::Push( const wxString& aMessage, bool aCreateUndoEntry )
|
||||
void BOARD_COMMIT::Push( const wxString& aMessage, bool aCreateUndoEntry, bool aSetDirtyBit )
|
||||
{
|
||||
// Objects potentially interested in changes:
|
||||
PICKED_ITEMS_LIST undoList;
|
||||
@@ -283,7 +283,9 @@ void BOARD_COMMIT::Push( const wxString& aMessage, bool aCreateUndoEntry )
|
||||
panel->RedrawRatsnest();
|
||||
}
|
||||
|
||||
frame->OnModify();
|
||||
if( aSetDirtyBit )
|
||||
frame->OnModify();
|
||||
|
||||
frame->UpdateMsgPanel();
|
||||
|
||||
clear();
|
||||
|
||||
Reference in New Issue
Block a user