Add and use accessors for most of Notes.
Don't autogen data until it's needed.
This commit is contained in:
@@ -283,10 +283,10 @@ void SongSelector::OnNotesChange()
|
||||
m_textNotes.SetText( "(NEW)" );
|
||||
else
|
||||
{
|
||||
CString sDescription = GetSelectedNotes()->m_sDescription;
|
||||
CString sDescription = GetSelectedNotes()->GetDescription();
|
||||
if( sDescription == "" )
|
||||
sDescription = "[no name]";
|
||||
if( GetSelectedNotes()->m_bAutoGen )
|
||||
if( GetSelectedNotes()->IsAutogen() )
|
||||
sDescription += " (autogen)";
|
||||
m_textNotes.SetText( sDescription );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user