summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/multimedia/opieplayer/playlistwidget.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/core/multimedia/opieplayer/playlistwidget.cpp b/core/multimedia/opieplayer/playlistwidget.cpp
index 4926287..b9b63c7 100644
--- a/core/multimedia/opieplayer/playlistwidget.cpp
+++ b/core/multimedia/opieplayer/playlistwidget.cpp
@@ -1160,4 +1160,15 @@ void PlayListWidget::keyReleaseEvent( QKeyEvent *e)
tabWidget->setCurrentPage(3);
break;
+ case Key_Down:
+ if ( !d->selectedFiles->next() )
+ d->selectedFiles->first();
+
+ break;
+ case Key_Up:
+ if ( !d->selectedFiles->prev() )
+ d->selectedFiles->last();
+
+ break;
+
}
}
@@ -1337,12 +1348,10 @@ void PlayListWidget::readPls(const QString &filename) {
// name = name.right(name.findRev("/",0,TRUE));
lnk.setName( name);
- if(s.at(s.length()-4) == '.')
+ if(s.at(s.length()-4) == '.') // if this is probably a file
lnk.setFile( s);
- else {
+ else { //if its a url
if( name.right(1).find('/') == -1)
s+="/";
- // if(s.right(1) != '/')
lnk.setFile( s);
-
}
lnk.setType("audio/x-mpegurl");