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
This commit is contained in:
Glenn Maynard
2004-05-14 23:20:28 +00:00
parent a8340dc8de
commit 0ec88317a0
+8
View File
@@ -284,6 +284,14 @@ bool ProfileManager::DeleteLocalProfile( CString sProfileID )
for( unsigned i=0; i<asFilesToDelete.size(); i++ )
FILEMAN->Remove( asFilesToDelete[i] );
// delete edits
GetDirListing( sProfileDir + "/" + EDITS_SUBDIR + "*", asFilesToDelete, false, true );
for( unsigned i=0; i<asFilesToDelete.size(); i++ )
FILEMAN->Remove( asFilesToDelete[i] );
// remove edits dir
FILEMAN->Remove( sProfileDir + "/" + EDITS_SUBDIR );
// remove profile dir
return FILEMAN->Remove( sProfileDir );
}