From 0ec88317a09fbe7683fc0e5f0119be95e1fb3b33 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 14 May 2004 23:20:28 +0000 Subject: [PATCH] delete edits when deleting a profile; otherwise the profile directory won't be removed, and the entry will still show up in the profile list --- stepmania/src/ProfileManager.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/stepmania/src/ProfileManager.cpp b/stepmania/src/ProfileManager.cpp index 340909e49c..fea2d8fc49 100644 --- a/stepmania/src/ProfileManager.cpp +++ b/stepmania/src/ProfileManager.cpp @@ -284,6 +284,14 @@ bool ProfileManager::DeleteLocalProfile( CString sProfileID ) for( unsigned i=0; iRemove( asFilesToDelete[i] ); + // delete edits + GetDirListing( sProfileDir + "/" + EDITS_SUBDIR + "*", asFilesToDelete, false, true ); + for( unsigned i=0; iRemove( asFilesToDelete[i] ); + + // remove edits dir + FILEMAN->Remove( sProfileDir + "/" + EDITS_SUBDIR ); + // remove profile dir return FILEMAN->Remove( sProfileDir ); }