Corrected fileName typo

This commit is contained in:
Dave French
2015-03-08 17:17:21 +00:00
parent 8c7cdf359e
commit 8e244a2e77

View File

@@ -942,7 +942,7 @@ void Song::loadProject( const QString & fileName )
DataFile dataFile( m_fileName );
// if file could not be opened, head-node is null and we create
// new project
if( dataFile.validate( _file_name.right(_file_name.lastIndexOf(".") ) ) )
if( dataFile.validate( fileName.right( fileName.lastIndexOf(".") ) ) )
{
return;
}