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:
Jeff Young
2018-04-09 21:19:11 +01:00
parent cb134fd065
commit 84151990cd
5 changed files with 12 additions and 7 deletions
+4 -2
View File
@@ -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();