-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 6 |
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 ) { | |||
208 | d->selectedFiles->addToSelection( lnk ); | 208 | d->selectedFiles->addToSelection( lnk ); |
209 | 209 | ||
210 | } | 210 | } |
211 | } | 211 | } |
212 | } | 212 | } |
213 | d->selectedFiles->setSelectedItem( currentString ); | 213 | d->selectedFiles->setSelectedItem( currentString ); |
214 | 214 | ||
215 | } | 215 | } |
216 | 216 | ||
217 | 217 | ||
218 | void PlayListWidget::writeConfig( Config& cfg ) const { | 218 | void PlayListWidget::writeConfig( Config& cfg ) const { |
219 | 219 | ||
220 | // Config config( "OpiePlayer" ); | 220 | Config config( "OpiePlayer" ); |
221 | // config.setGroup( "PlayList" ); | 221 | config.setGroup( "PlayList" ); |
222 | 222 | ||
223 | // if(config.readBoolEntry("newPlaylist")) { | 223 | // if(config.readBoolEntry("newPlaylist")) { |
224 | // new for testing | 224 | // new for testing |
225 | QString name, filename, list; | 225 | QString name, filename, list; |
226 | Om3u *m3uList; | 226 | Om3u *m3uList; |
227 | name = "default"; | 227 | name = "default"; |
228 | 228 | ||
229 | filename=QPEApplication::documentDir() + "/" + name+".m3u"; | 229 | filename=QPEApplication::documentDir() + "/" + name+".m3u"; |
230 | 230 | ||
231 | m3uList = new Om3u(filename); | 231 | m3uList = new Om3u(filename); |
232 | 232 | ||
233 | d->selectedFiles->first(); | 233 | d->selectedFiles->first(); |
@@ -240,25 +240,25 @@ void PlayListWidget::writeConfig( Config& cfg ) const { | |||
240 | 240 | ||
241 | m3uList->write(); | 241 | m3uList->write(); |
242 | m3uList->close(); | 242 | m3uList->close(); |
243 | if(m3uList) delete m3uList; | 243 | if(m3uList) delete m3uList; |
244 | 244 | ||
245 | DocLnk lnk; | 245 | DocLnk lnk; |
246 | lnk.setFile( filename); | 246 | lnk.setFile( filename); |
247 | lnk.setIcon("opieplayer2/playlist2"); | 247 | lnk.setIcon("opieplayer2/playlist2"); |
248 | lnk.setName( name); //sets file name | 248 | lnk.setName( name); //sets file name |
249 | 249 | ||
250 | qDebug("writing default playlist "+filename); | 250 | qDebug("writing default playlist "+filename); |
251 | 251 | ||
252 | config.writeEntry("CurrentPlaylist", filename); | 252 | config.writeEntry("CurrentPlaylist", filename); |
253 | // currentPlayList=filename; | 253 | // currentPlayList=filename; |
254 | 254 | ||
255 | if(!lnk.writeLink()) { | 255 | if(!lnk.writeLink()) { |
256 | qDebug("Writing doclink did not work"); | 256 | qDebug("Writing doclink did not work"); |
257 | } | 257 | } |
258 | 258 | ||
259 | // } else { | 259 | // } else { |
260 | 260 | ||
261 | // d->selectedFiles->writeCurrent( cfg ); | 261 | // d->selectedFiles->writeCurrent( cfg ); |
262 | // int noOfFiles = 0; | 262 | // int noOfFiles = 0; |
263 | // d->selectedFiles->first(); | 263 | // d->selectedFiles->first(); |
264 | 264 | ||