Fix unintended rename of track

pull/1/head
Timothy Pearson 12 years ago
parent 159ce83873
commit 75ce314764

@ -301,19 +301,19 @@ void Disc::setEncoding( bool b )
void Disc::encode() void Disc::encode()
{ {
TQListViewItem *it; TQListViewItem *it;
TQStringList tractdelist; TQStringList tracklist;
it = list->firstChild(); it = list->firstChild();
if ( !it ) if ( !it )
return; return;
tractdelist.append( artistLab->text() ); tracklist.append( artistLab->text() );
tractdelist.append( albumLab->text() ); tracklist.append( albumLab->text() );
while ( it!=0 ) { while ( it!=0 ) {
if ( it->isSelected() ) if ( it->isSelected() )
tractdelist.append( it->text(0)+"-"+it->text(1) ); tracklist.append( it->text(0)+"-"+it->text(1) );
it = it->nextSibling(); it = it->nextSibling();
} }
if ( (int)tractdelist.count()<3 ) { if ( (int)tracklist.count()<3 ) {
KMessageBox::information( mainWidget, i18n("You must select the tracks to rip."), i18n("Warning") ); KMessageBox::information( mainWidget, i18n("You must select the tracks to rip."), i18n("Warning") );
return; return;
} }
@ -329,7 +329,7 @@ void Disc::encode()
return; return;
} }
if ( para->encode( tractdelist, mainWidget ) ) if ( para->encode( tracklist, mainWidget ) )
encodeTimer.start( 1000 ); encodeTimer.start( 1000 );
else { else {
delete para; delete para;

Loading…
Cancel
Save