summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-10-08 14:04:49 (UTC)
committer llornkcor <llornkcor>2002-10-08 14:04:49 (UTC)
commit35858cdc60ab8ca959804e9994a7ce2cf8e99000 (patch) (side-by-side diff)
treedbe50718c5369cc5daba16dd8a6c4b4ef7010704
parent89fa0437f110efc93443dd9ce0b2bbf2a9e5f9b2 (diff)
downloadopie-35858cdc60ab8ca959804e9994a7ce2cf8e99000.zip
opie-35858cdc60ab8ca959804e9994a7ce2cf8e99000.tar.gz
opie-35858cdc60ab8ca959804e9994a7ce2cf8e99000.tar.bz2
fix load playlist
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index b6525e1..897c458 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -149,16 +149,17 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl )
mediaPlayerState, SLOT( setVideoGamma( int ) ) );
// see which skins are installed
videoScan=FALSE;
audioScan=FALSE;
populateSkinsMenu();
initializeStates();
+ cfg.setGroup("PlayList");
QString currentPlaylist = cfg.readEntry( "CurrentPlaylist", "" );
loadList(DocLnk( currentPlaylist ) );
setCaption( tr( "OpiePlayer: " ) + currentPlaylist );
}
PlayListWidget::~PlayListWidget() {
if ( d->current ) {
@@ -479,17 +480,17 @@ bool PlayListWidget::last() {
void PlayListWidget::saveList() {
writem3u();
}
void PlayListWidget::loadList( const DocLnk & lnk) {
QString name = lnk.name();
- // qDebug("<<<<<<<<<<<<<<<<<<<<<<<<currentList is "+name);
+ qDebug("<<<<<<<<<<<<<<<<<<<<<<<<currentList is "+name);
if( name.length()>0) {
setCaption("OpiePlayer: "+name);
qDebug("<<<<<<<<<<<<load list "+ lnk.file());
clearList();
readm3u(lnk.file());
tabWidget->setCurrentPage(0);
}