summaryrefslogtreecommitdiff
Side-by-side diff
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
@@ -460,16 +460,17 @@ void PlayListWidget::addSelected() {
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() );
@@ -480,16 +481,17 @@ void PlayListWidget::addSelected() {
videoView->setSelected( it.current(),FALSE);
}
}
}
}
}
// tabWidget->setCurrentPage(0);
writeCurrentM3u();
+
}
break;
};
}
void PlayListWidget::removeSelected() {
d->selectedFiles->removeSelected( );
@@ -769,19 +771,19 @@ void PlayListWidget::readm3u( const QString &filename ) {
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);