summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index 0825eed..60eb0c8 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -517,6 +517,9 @@ void PlayListWidget::addToSelection( QListViewItem *it) {
for ( ; dit.current(); ++dit ) {
if( dit.current()->name() == it->text(0)) {
- if(QFileInfo( dit.current()->file()).exists())
+ if(QFileInfo( dit.current()->file()).exists()) {
d->selectedFiles->addToSelection( **dit );
+ qDebug("blah "+ dit.current()->name());
+ d->selectedFiles->setSelectedItem( dit.current()->name());
+ }
}
}
@@ -528,6 +531,9 @@ void PlayListWidget::addToSelection( QListViewItem *it) {
for ( ; dit.current(); ++dit ) {
if( dit.current()->name() == it->text(0)) {
- if( QFileInfo( dit.current()->file()).exists() )
+ if( QFileInfo( dit.current()->file()).exists() ) {
d->selectedFiles->addToSelection( **dit );
+ qDebug("blah "+ dit.current()->name());
+ d->selectedFiles->setSelectedItem( dit.current()->name());
+ }
}
}
@@ -540,4 +546,5 @@ void PlayListWidget::addToSelection( QListViewItem *it) {
};
tabWidget->setCurrentPage(0);
+
}
}
@@ -746,4 +753,5 @@ void PlayListWidget::openFile() {
d->selectedFiles->addToSelection( lnk );
writeCurrentM3u();
+ d->selectedFiles->setSelectedItem( lnk->name());
}
else if( filename.right( 3) == "m3u" ) {
@@ -757,4 +765,5 @@ void PlayListWidget::openFile() {
d->selectedFiles->addToSelection( lnk);
writeCurrentM3u();
+ d->selectedFiles->setSelectedItem( lnk.name());
}
}
@@ -887,4 +896,5 @@ void PlayListWidget::writeCurrentM3u() {
if(m3uList) delete m3uList;
}
+
}