Skip to content

Commit

Permalink
Show the name of currently being loaded track.
Browse files Browse the repository at this point in the history
  • Loading branch information
PhysSong committed Jun 28, 2017
1 parent f76cb6f commit aee0f2b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/TrackContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ void TrackContainer::loadSettings( const QDomElement & _this )
if( node.isElement() &&
!node.toElement().attribute( "metadata" ).toInt() )
{
QString trackName = node.toElement().hasAttribute( "name" ) ? node.toElement().attribute( "name" ) :
node.firstChild().toElement().attribute( "name" );
pd->setLabelText( tr("Loading Track %1 (%2/Total %3)").arg( trackName ).arg( pd->value() ).arg( Engine::getSong()->getLoadingTrackCount() ) );
Track::create( node.toElement(), this );
}
node = node.nextSibling();
Expand Down

0 comments on commit aee0f2b

Please sign in to comment.