From 828c44f2995c7487eef5f4cd3a1e83bdb661ceef Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 13 Aug 2005 01:32:50 +0000 Subject: [PATCH] flush in SaveAllToDir, instead of CreateNewProfile --- stepmania/src/Profile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Profile.cpp b/stepmania/src/Profile.cpp index 64f7f787a0..6195dfd5d9 100644 --- a/stepmania/src/Profile.cpp +++ b/stepmania/src/Profile.cpp @@ -892,6 +892,8 @@ bool Profile::SaveAllToDir( CString sDir, bool bSignData ) const FILEMAN->CreateDir( sDir + EDIT_COURSES_SUBDIR ); FILEMAN->CreateDir( sDir + SCREENSHOTS_SUBDIR ); + FlushDirCache(); + return bSaved; } @@ -1901,7 +1903,6 @@ Profile *Profile::CreateNewProfile( CString sProfileDir, CString sName, bool bFi return NULL; } - FlushDirCache(); return pProfile; }