author | llornkcor <llornkcor> | 2002-11-10 15:26:11 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-11-10 15:26:11 (UTC) |
commit | 804e08f4642353af836bab921d8f732709051de0 (patch) (side-by-side diff) | |
tree | 8e3ee2f1e519ef018a51cc32436ca24ff9d47da9 | |
parent | 1486b6f940adde3cd80592e436e8e025045d7f8e (diff) | |
download | opie-804e08f4642353af836bab921d8f732709051de0.zip opie-804e08f4642353af836bab921d8f732709051de0.tar.gz opie-804e08f4642353af836bab921d8f732709051de0.tar.bz2 |
no extras here either
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 8 |
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 @@ -456,44 +456,46 @@ void PlayListWidget::addSelected() { for ( ; dit.current(); ++dit ) { if( dit.current()->name() == it.current()->text(0) ) { if( QFileInfo( dit.current()->file()).exists()) { d->selectedFiles->addToSelection( **dit ); audioView->setSelected( it.current(),FALSE); } } } } } // tabWidget->setCurrentPage(0); writeCurrentM3u(); + d->selectedFiles->next(); } break; case 2: { // video QListViewItemIterator it( videoView ); // iterate through all items of the listview for ( ; it.current(); ++it ) { if ( it.current()->isSelected() ) { QListIterator<DocLnk> dit( vFiles.children() ); for ( ; dit.current(); ++dit ) { if( dit.current()->name() == it.current()->text(0) ) { if(QFileInfo( dit.current()->file()).exists()) { d->selectedFiles->addToSelection( **dit ); videoView->setSelected( it.current(),FALSE); } } } } } // tabWidget->setCurrentPage(0); writeCurrentM3u(); + } break; }; } void PlayListWidget::removeSelected() { d->selectedFiles->removeSelected( ); writeCurrentM3u(); } @@ -765,27 +767,27 @@ void PlayListWidget::readm3u( const QString &filename ) { Om3u *m3uList; QString s, name; m3uList = new Om3u( filename, IO_ReadOnly ); m3uList->readM3u(); DocLnk lnk; for ( QStringList::ConstIterator it = m3uList->begin(); it != m3uList->end(); ++it ) { s = *it; // qDebug("reading "+ s); if(s.left(4)=="http") { lnk.setName( s ); //sets file name lnk.setIcon("opieplayer2/musicfile"); - if(s.right(4) != '.' || s.right(5) != '.') - lnk.setFile( s+"/"); //if url with no extension - else +// if(s.right(4) != '.' || s.right(5) != '.') +// lnk.setFile( s+"/"); //if url with no extension +// else lnk.setFile( s ); //sets file name } else { // if( QFileInfo( s ).exists() ) { lnk.setName( QFileInfo(s).baseName()); // if(s.right(4) == '.') {//if regular file if(s.left(1) != "/") { // qDebug("set link "+QFileInfo(filename).dirPath()+"/"+s); lnk.setFile( QFileInfo(filename).dirPath()+"/"+s); lnk.setIcon("SoundPlayer"); } else { // qDebug("set link2 "+s); |