summaryrefslogtreecommitdiff
path: root/noncore
Side-by-side diff
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index 27a3286..cba7b6d 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -202,12 +202,16 @@ void PlayListWidget::addToSelection( const DocLnk& lnk ) {
void PlayListWidget::clearList() {
while ( first() ) {
d->selectedFiles->removeSelected();
}
+ Config cfg( "OpiePlayer" );
+ cfg.setGroup("PlayList");
+ cfg.writeEntry("CurrentPlaylist","default");
+ setCaption("OpiePlayer");
}
void PlayListWidget::viewPressed( int mouse, QListViewItem *, const QPoint& , int) {
switch (mouse) {
case LeftButton:
break;
@@ -489,13 +493,13 @@ void PlayListWidget::addSelected() {
d->selectedFiles->addToSelection( lnk );
}
currentFileListView->clearSelection();
- tabWidget->setCurrentPage( 0 );
+// tabWidget->setCurrentPage( 0 );
writeCurrentM3u();
}
void PlayListWidget::removeSelected() {
d->selectedFiles->removeSelected( );
@@ -524,13 +528,13 @@ void PlayListWidget::addToSelection( QListViewItem *it) {
filename=it->text(3);
lnk.setName( QFileInfo(filename).baseName() ); //sets name
lnk.setFile( filename ); //sets file name
d->selectedFiles->addToSelection( lnk);
writeCurrentM3u();
- tabWidget->setCurrentPage(0);
+// tabWidget->setCurrentPage(0);
}
}
void PlayListWidget::tabChanged(QWidget *) {