Prevent double connectivity calculations
The schematic cleanup will call the connectivity calculation but we don't want this second call, so we store the change in a dummy commit and discard it when we're done.
This commit is contained in:
parent
df90409a94
commit
d0f37ee55e
|
@ -43,6 +43,7 @@
|
||||||
#include <reporter.h>
|
#include <reporter.h>
|
||||||
#include <richio.h>
|
#include <richio.h>
|
||||||
#include <sch_bus_entry.h>
|
#include <sch_bus_entry.h>
|
||||||
|
#include <sch_commit.h>
|
||||||
#include <sch_edit_frame.h>
|
#include <sch_edit_frame.h>
|
||||||
#include <sch_plugins/legacy/sch_legacy_plugin.h>
|
#include <sch_plugins/legacy/sch_legacy_plugin.h>
|
||||||
#include <sch_file_versions.h>
|
#include <sch_file_versions.h>
|
||||||
|
@ -486,8 +487,9 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
|
||||||
OnModify();
|
OnModify();
|
||||||
}
|
}
|
||||||
|
|
||||||
RecalculateConnections( nullptr, GLOBAL_CLEANUP );
|
SCH_COMMIT dummy( this );
|
||||||
ClearUndoRedoList();
|
|
||||||
|
RecalculateConnections( &dummy, GLOBAL_CLEANUP );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load any exclusions from the project file
|
// Load any exclusions from the project file
|
||||||
|
|
Loading…
Reference in New Issue