Library Manager: clear the deleted part buffer when original file is saved

This commit is contained in:
Maciej Suminski 2017-11-14 14:40:37 +01:00
parent 86f71a9eb4
commit 658dd362cd
1 changed files with 6 additions and 0 deletions

View File

@ -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
{ {