summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2003-06-11 03:38:10 (UTC)
committer llornkcor <llornkcor>2003-06-11 03:38:10 (UTC)
commit22be97432c25bad67b4fb241977670657facb3af (patch) (side-by-side diff)
tree19826054782bdf38590af084c29e77f2314daed6
parentbb6afc95ea64329f8fb9b7af8727b0c13747dde0 (diff)
downloadopie-22be97432c25bad67b4fb241977670657facb3af.zip
opie-22be97432c25bad67b4fb241977670657facb3af.tar.gz
opie-22be97432c25bad67b4fb241977670657facb3af.tar.bz2
fix setDocument for lists
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/playlistwidget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/multimedia/opieplayer/playlistwidget.cpp b/core/multimedia/opieplayer/playlistwidget.cpp
index 5d0f6de..7ea95ab 100644
--- a/core/multimedia/opieplayer/playlistwidget.cpp
+++ b/core/multimedia/opieplayer/playlistwidget.cpp
@@ -488,24 +488,25 @@ void PlayListWidget::addAllVideoToList() {
if(QFileInfo( dit.current()->file()).exists())
d->selectedFiles->addToSelection( **dit );
tabWidget->setCurrentPage(0);
writeCurrentM3u();
d->selectedFiles->first();
}
void PlayListWidget::setDocument(const QString& fileref) {
fromSetDocument = true;
d->setDocumentUsed = TRUE;
+ d->selectedFiles->setSelected(d->selectedFiles->firstChild(),true );
mediaPlayerState->setPlaying( FALSE );
qApp->processEvents();
mediaPlayerState->setPlaying( TRUE );
}
void PlayListWidget::setDocumentEx(const QString& fileref) {
QFileInfo fileInfo(fileref);
if ( !fileInfo.exists() ) {
QMessageBox::critical( 0, tr( "Invalid File" ),
tr( "There was a problem in getting the file." ) );
return;