Fix obscure editor save bugs: clear cache after writing.
This commit is contained in:
@@ -296,6 +296,9 @@ void NotesWriterDWI::WriteDWINotesField( FILE* fp, const Steps &out, int start )
|
||||
|
||||
bool NotesWriterDWI::WriteDWINotesTag( FILE* fp, const Steps &out )
|
||||
{
|
||||
/* Flush dir cache when writing steps, so the old size isn't cached. */
|
||||
FlushDirCache();
|
||||
|
||||
LOG->Trace( "Steps::WriteDWINotesTag" );
|
||||
|
||||
switch( out.m_StepsType )
|
||||
|
||||
@@ -114,6 +114,9 @@ void NotesWriterSM::WriteSMNotesTag( const Steps &in, FILE* fp )
|
||||
|
||||
bool NotesWriterSM::Write(CString sPath, const Song &out, bool bSavingCache)
|
||||
{
|
||||
/* Flush dir cache when writing steps, so the old size isn't cached. */
|
||||
FlushDirCache();
|
||||
|
||||
unsigned i;
|
||||
|
||||
FILE* fp = fopen( sPath, "w" );
|
||||
|
||||
Reference in New Issue
Block a user