|
|
|
@ -301,19 +301,19 @@ void Disc::setEncoding( bool b )
|
|
|
|
|
void Disc::encode()
|
|
|
|
|
{
|
|
|
|
|
TQListViewItem *it;
|
|
|
|
|
TQStringList tractdelist;
|
|
|
|
|
TQStringList tracklist;
|
|
|
|
|
|
|
|
|
|
it = list->firstChild();
|
|
|
|
|
if ( !it )
|
|
|
|
|
return;
|
|
|
|
|
tractdelist.append( artistLab->text() );
|
|
|
|
|
tractdelist.append( albumLab->text() );
|
|
|
|
|
tracklist.append( artistLab->text() );
|
|
|
|
|
tracklist.append( albumLab->text() );
|
|
|
|
|
while ( it!=0 ) {
|
|
|
|
|
if ( it->isSelected() )
|
|
|
|
|
tractdelist.append( it->text(0)+"-"+it->text(1) );
|
|
|
|
|
tracklist.append( it->text(0)+"-"+it->text(1) );
|
|
|
|
|
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") );
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -329,7 +329,7 @@ void Disc::encode()
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( para->encode( tractdelist, mainWidget ) )
|
|
|
|
|
if ( para->encode( tracklist, mainWidget ) )
|
|
|
|
|
encodeTimer.start( 1000 );
|
|
|
|
|
else {
|
|
|
|
|
delete para;
|
|
|
|
|