This commit is contained in:
AJ Kelly
2011-03-16 21:45:29 -05:00
parent 877f4865cc
commit 09344da5cf
+2 -4
View File
@@ -45,7 +45,6 @@ void ScreenEditMenu::Init()
m_Selector.SetXY( 0, 0 ); m_Selector.SetXY( 0, 0 );
this->AddChild( &m_Selector ); this->AddChild( &m_Selector );
m_textExplanation.SetName( "Explanation" ); m_textExplanation.SetName( "Explanation" );
m_textExplanation.LoadFromFont( THEME->GetPathF(m_sName,"explanation") ); m_textExplanation.LoadFromFont( THEME->GetPathF(m_sName,"explanation") );
LOAD_ALL_COMMANDS_AND_SET_XY( m_textExplanation ); LOAD_ALL_COMMANDS_AND_SET_XY( m_textExplanation );
@@ -59,7 +58,6 @@ void ScreenEditMenu::Init()
this->AddChild( &m_textNumStepsLoadedFromProfile ); this->AddChild( &m_textNumStepsLoadedFromProfile );
} }
void ScreenEditMenu::HandleScreenMessage( const ScreenMessage SM ) void ScreenEditMenu::HandleScreenMessage( const ScreenMessage SM )
{ {
if( SM == SM_RefreshSelector ) if( SM == SM_RefreshSelector )
@@ -77,8 +75,8 @@ void ScreenEditMenu::HandleScreenMessage( const ScreenMessage SM )
pSong->DeleteSteps( pStepsToDelete ); pSong->DeleteSteps( pStepsToDelete );
SONGMAN->Invalidate( pSong ); SONGMAN->Invalidate( pSong );
/* Only save to the main .SM file if the steps we're deleting were loaded /* Only save to the main .SM file if the steps we're deleting
* from it. */ * were loaded from it. */
if( bSaveSong ) if( bSaveSong )
{ {
pSong->Save(); pSong->Save();