summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index 60eb0c8..86130d5 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -515,28 +515,28 @@ void PlayListWidget::addToSelection( QListViewItem *it) {
case 1: {
QListIterator<DocLnk> dit( files.children() );
for ( ; dit.current(); ++dit ) {
if( dit.current()->name() == it->text(0)) {
if(QFileInfo( dit.current()->file()).exists()) {
d->selectedFiles->addToSelection( **dit );
- qDebug("blah "+ dit.current()->name());
- d->selectedFiles->setSelectedItem( dit.current()->name());
+// qDebug("blah "+ dit.current()->name());
+// d->selectedFiles->setSelectedItem( dit.current()->name());
}
}
}
writeCurrentM3u();
}
break;
case 2: {
QListIterator<DocLnk> dit( vFiles.children() );
for ( ; dit.current(); ++dit ) {
if( dit.current()->name() == it->text(0)) {
if( QFileInfo( dit.current()->file()).exists() ) {
d->selectedFiles->addToSelection( **dit );
- qDebug("blah "+ dit.current()->name());
- d->selectedFiles->setSelectedItem( dit.current()->name());
+// qDebug("blah "+ dit.current()->name());
+// d->selectedFiles->setSelectedItem( dit.current()->name());
}
}
}
writeCurrentM3u();
}
@@ -749,13 +749,13 @@ void PlayListWidget::openFile() {
lnk.setFile( filename ); //sets file name
// lnk.setIcon("opieplayer2/musicfile");
d->selectedFiles->addToSelection( lnk );
writeCurrentM3u();
- d->selectedFiles->setSelectedItem( lnk->name());
+ d->selectedFiles->setSelectedItem( lnk.name());
}
else if( filename.right( 3) == "m3u" ) {
readm3u( filename );
} else if( filename.right(3) == "pls" ) {
readPls( filename );