summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/playlistwidget.cpp
authorllornkcor <llornkcor>2002-10-08 00:10:23 (UTC)
committer llornkcor <llornkcor>2002-10-08 00:10:23 (UTC)
commit5e450f24ca13923535754b33a1d1645709a8259d (patch) (side-by-side diff)
tree50603e21c40bd0a4dd1661a96a5b4b0fe3b6f364 /noncore/multimedia/opieplayer2/playlistwidget.cpp
parent02464ee120e2661d1fb30b0743ce64626c2d3133 (diff)
downloadopie-5e450f24ca13923535754b33a1d1645709a8259d.zip
opie-5e450f24ca13923535754b33a1d1645709a8259d.tar.gz
opie-5e450f24ca13923535754b33a1d1645709a8259d.tar.bz2
small config fix
Diffstat (limited to 'noncore/multimedia/opieplayer2/playlistwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index ab6b593..26c2896 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -208,26 +208,26 @@ void PlayListWidget::readConfig( Config& cfg ) {
d->selectedFiles->addToSelection( lnk );
}
}
}
d->selectedFiles->setSelectedItem( currentString );
}
void PlayListWidget::writeConfig( Config& cfg ) const {
-// Config config( "OpiePlayer" );
-// config.setGroup( "PlayList" );
+ Config config( "OpiePlayer" );
+ config.setGroup( "PlayList" );
// if(config.readBoolEntry("newPlaylist")) {
// new for testing
QString name, filename, list;
Om3u *m3uList;
name = "default";
filename=QPEApplication::documentDir() + "/" + name+".m3u";
m3uList = new Om3u(filename);
d->selectedFiles->first();
@@ -240,25 +240,25 @@ void PlayListWidget::writeConfig( Config& cfg ) const {
m3uList->write();
m3uList->close();
if(m3uList) delete m3uList;
DocLnk lnk;
lnk.setFile( filename);
lnk.setIcon("opieplayer2/playlist2");
lnk.setName( name); //sets file name
qDebug("writing default playlist "+filename);
- config.writeEntry("CurrentPlaylist", filename);
+ config.writeEntry("CurrentPlaylist", filename);
// currentPlayList=filename;
if(!lnk.writeLink()) {
qDebug("Writing doclink did not work");
}
// } else {
// d->selectedFiles->writeCurrent( cfg );
// int noOfFiles = 0;
// d->selectedFiles->first();