fix loading of profile LastSong and LastCourse
This commit is contained in:
@@ -226,7 +226,7 @@ Course *CourseID::ToCourse() const
|
||||
// Re-add the leading "/". 2005/05/21 file layer changes added a leading slash.
|
||||
CString sPath2 = sPath;
|
||||
if( sPath2.Left(1) != "/" )
|
||||
sPath2.erase( sPath2.begin() );
|
||||
sPath2 = "/" + sPath2;
|
||||
|
||||
if( !sPath2.empty() )
|
||||
{
|
||||
|
||||
@@ -392,7 +392,7 @@ Song *SongID::ToSong() const
|
||||
// Re-add the leading "/". 2005/05/21 file layer changes added a leading slash.
|
||||
CString sDir2 = sDir;
|
||||
if( sDir2.Left(1) != "/" )
|
||||
sDir2.erase( sDir2.begin() );
|
||||
sDir2 = "/" + sDir2;
|
||||
|
||||
return SONGMAN->GetSongFromDir( sDir2 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user