Commit 55688a8b authored by Leslie Zhai's avatar Leslie Zhai

Fix unnecessary spaces at the end of files names during audio cd extraction.

BUG: 387087
CCBUG: 380322
parent f8ea41d2
...@@ -289,16 +289,16 @@ QIODevice* AudioRipJob::createReader( int trackIndex ) const ...@@ -289,16 +289,16 @@ QIODevice* AudioRipJob::createReader( int trackIndex ) const
} }
void AudioRipJob::trackStarted( int trackIndex ) void AudioRipJob::trackStarted(int trackIndex)
{ {
if( !cddbEntry().track( trackIndex-1 ).get( KCDDB::Artist ).toString().isEmpty() && if (!cddbEntry().track(trackIndex - 1).get(KCDDB::Artist).toString().isEmpty() &&
!cddbEntry().track( trackIndex-1 ).get( KCDDB::Title ).toString().isEmpty() ) !cddbEntry().track(trackIndex - 1).get(KCDDB::Title).toString().isEmpty()) {
emit newSubTask( i18n( "Ripping track %1 (%2 - %3)", emit newSubTask(i18n("Ripping track %1 (%2 - %3)",
trackIndex, trackIndex,
cddbEntry().track( trackIndex-1 ).get( KCDDB::Artist ).toString(), cddbEntry().track(trackIndex - 1).get(KCDDB::Artist).toString(),
cddbEntry().track( trackIndex-1 ).get( KCDDB::Title ).toString() ) ); cddbEntry().track(trackIndex - 1).get(KCDDB::Title).toString().trimmed()));
else } else
emit newSubTask( i18n("Ripping track %1", trackIndex) ); emit newSubTask(i18n("Ripping track %1", trackIndex));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment