summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-11-10 15:26:11 (UTC)
committer llornkcor <llornkcor>2002-11-10 15:26:11 (UTC)
commit804e08f4642353af836bab921d8f732709051de0 (patch) (unidiff)
tree8e3ee2f1e519ef018a51cc32436ca24ff9d47da9
parent1486b6f940adde3cd80592e436e8e025045d7f8e (diff)
downloadopie-804e08f4642353af836bab921d8f732709051de0.zip
opie-804e08f4642353af836bab921d8f732709051de0.tar.gz
opie-804e08f4642353af836bab921d8f732709051de0.tar.bz2
no extras here either
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index 75c7332..b15f95e 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -462,12 +462,13 @@ void PlayListWidget::addSelected() {
462 } 462 }
463 } 463 }
464 } 464 }
465 } 465 }
466// tabWidget->setCurrentPage(0); 466// tabWidget->setCurrentPage(0);
467 writeCurrentM3u(); 467 writeCurrentM3u();
468 d->selectedFiles->next();
468 } 469 }
469 break; 470 break;
470 case 2: { // video 471 case 2: { // video
471 QListViewItemIterator it( videoView ); 472 QListViewItemIterator it( videoView );
472 // iterate through all items of the listview 473 // iterate through all items of the listview
473 for ( ; it.current(); ++it ) { 474 for ( ; it.current(); ++it ) {
@@ -482,12 +483,13 @@ void PlayListWidget::addSelected() {
482 } 483 }
483 } 484 }
484 } 485 }
485 } 486 }
486// tabWidget->setCurrentPage(0); 487// tabWidget->setCurrentPage(0);
487 writeCurrentM3u(); 488 writeCurrentM3u();
489
488 } 490 }
489 break; 491 break;
490 }; 492 };
491} 493}
492 494
493 495
@@ -771,15 +773,15 @@ void PlayListWidget::readm3u( const QString &filename ) {
771 for ( QStringList::ConstIterator it = m3uList->begin(); it != m3uList->end(); ++it ) { 773 for ( QStringList::ConstIterator it = m3uList->begin(); it != m3uList->end(); ++it ) {
772 s = *it; 774 s = *it;
773// qDebug("reading "+ s); 775// qDebug("reading "+ s);
774 if(s.left(4)=="http") { 776 if(s.left(4)=="http") {
775 lnk.setName( s ); //sets file name 777 lnk.setName( s ); //sets file name
776 lnk.setIcon("opieplayer2/musicfile"); 778 lnk.setIcon("opieplayer2/musicfile");
777 if(s.right(4) != '.' || s.right(5) != '.') 779// if(s.right(4) != '.' || s.right(5) != '.')
778 lnk.setFile( s+"/"); //if url with no extension 780// lnk.setFile( s+"/"); //if url with no extension
779 else 781// else
780 lnk.setFile( s ); //sets file name 782 lnk.setFile( s ); //sets file name
781 783
782 } else { 784 } else {
783 // if( QFileInfo( s ).exists() ) { 785 // if( QFileInfo( s ).exists() ) {
784 lnk.setName( QFileInfo(s).baseName()); 786 lnk.setName( QFileInfo(s).baseName());
785 // if(s.right(4) == '.') {//if regular file 787 // if(s.right(4) == '.') {//if regular file