|
|
|
@ -31,7 +31,7 @@
|
|
|
|
|
#include <klocale.h>
|
|
|
|
|
#include <kiconloader.h>
|
|
|
|
|
#include <kmessagebox.h>
|
|
|
|
|
#include <kaction.h>
|
|
|
|
|
#include <tdeaction.h>
|
|
|
|
|
#include <kstdaction.h>
|
|
|
|
|
#include <kdebug.h>
|
|
|
|
|
#include <kinputdialog.h>
|
|
|
|
@ -301,19 +301,19 @@ void Disc::setEncoding( bool b )
|
|
|
|
|
void Disc::encode()
|
|
|
|
|
{
|
|
|
|
|
TQListViewItem *it;
|
|
|
|
|
TQStringList tracklist;
|
|
|
|
|
TQStringList tractdelist;
|
|
|
|
|
|
|
|
|
|
it = list->firstChild();
|
|
|
|
|
if ( !it )
|
|
|
|
|
return;
|
|
|
|
|
tracklist.append( artistLab->text() );
|
|
|
|
|
tracklist.append( albumLab->text() );
|
|
|
|
|
tractdelist.append( artistLab->text() );
|
|
|
|
|
tractdelist.append( albumLab->text() );
|
|
|
|
|
while ( it!=0 ) {
|
|
|
|
|
if ( it->isSelected() )
|
|
|
|
|
tracklist.append( it->text(0)+"-"+it->text(1) );
|
|
|
|
|
tractdelist.append( it->text(0)+"-"+it->text(1) );
|
|
|
|
|
it = it->nextSibling();
|
|
|
|
|
}
|
|
|
|
|
if ( (int)tracklist.count()<3 ) {
|
|
|
|
|
if ( (int)tractdelist.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( tracklist, mainWidget ) )
|
|
|
|
|
if ( para->encode( tractdelist, mainWidget ) )
|
|
|
|
|
encodeTimer.start( 1000 );
|
|
|
|
|
else {
|
|
|
|
|
delete para;
|
|
|
|
|