Let's try this again.

This commit is contained in:
Jason Felds
2011-07-30 14:24:35 -04:00
3 changed files with 8 additions and 1 deletions
+4
View File
@@ -8,6 +8,10 @@ ________________________________________________________________________________
StepMania 5.0 Preview 3 | 20110???
--------------------------------------------------------------------------------
2011/07/30
----------
* [ProfileManager] Fix an issue when deleting recently created profiles. [AJ]
2011/07/26
----------
* [ScreenEdit] Add a semi working implementation of the often requested
+4
View File
@@ -486,6 +486,9 @@ bool ProfileManager::DeleteLocalProfile( RString sProfileID )
ASSERT( pProfile );
RString sProfileDir = LocalProfileIDToDir( sProfileID );
// flush directory cache in an attempt to get this working
FILEMAN->FlushDirCache( sProfileDir );
FOREACH( DirAndProfile, g_vLocalProfile, i )
{
if( i->sDir == sProfileDir )
@@ -504,6 +507,7 @@ bool ProfileManager::DeleteLocalProfile( RString sProfileID )
}
else
{
LOG->Warn( ssprintf("[ProfileManager::DeleteLocalProfile] DeleteRecursive(%s) failed",sProfileID.c_str()) );
return false;
}
}
-1
View File
@@ -299,7 +299,6 @@ void ScreenOptionsManageProfiles::HandleScreenMessage( const ScreenMessage SM )
{
RString sTitle = pProfile->m_sDisplayName;
RString sMessage = ssprintf( CONFIRM_DELETE_PROFILE.GetValue(), sTitle.c_str() );
LOG->Trace("[ScreenOptionsManageProfiles] ProfileAction_Delete");
ScreenPrompt::Prompt( SM_BackFromDeleteConfirm, sMessage, PROMPT_YES_NO );
}
break;