Library Manager: clear the deleted part buffer when original file is saved
This commit is contained in:
parent
86f71a9eb4
commit
658dd362cd
|
@ -164,6 +164,12 @@ bool LIB_MANAGER::SaveLibrary( const wxString& aLibrary, const wxString& aFileNa
|
||||||
res = false;
|
res = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// clear the deleted parts buffer only if data is saved to the original file
|
||||||
|
auto row = m_symbolTable->FindRow( aLibrary );
|
||||||
|
|
||||||
|
if( res && row && row->GetFullURI( true ) == aFileName )
|
||||||
|
libBuf.ClearDeletedBuffer();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue