summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-11-10 15:09:42 (UTC)
committer llornkcor <llornkcor>2002-11-10 15:09:42 (UTC)
commit1486b6f940adde3cd80592e436e8e025045d7f8e (patch) (side-by-side diff)
treec7e0add7b96a10cbd5095bdfd2845c4e063ebccb
parent521b993fb4175e699e9ac832c50558af0354ca25 (diff)
downloadopie-1486b6f940adde3cd80592e436e8e025045d7f8e.zip
opie-1486b6f940adde3cd80592e436e8e025045d7f8e.tar.gz
opie-1486b6f940adde3cd80592e436e8e025045d7f8e.tar.bz2
need a default m3u to write too
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index 7ada5ee..75c7332 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -708,8 +708,10 @@ void PlayListWidget::populateVideoView() {
}
void PlayListWidget::openFile() {
+ // http://66.28.164.33:2080
+ // http://somafm.com/star0242.m3u
QString filename, name;
InputDialog *fileDlg;
fileDlg = new InputDialog(this,tr("Open file or URL"),TRUE, 0);
fileDlg->exec();
@@ -858,9 +860,9 @@ void PlayListWidget::readPls( const QString &filename ) {
void PlayListWidget::writeCurrentM3u() {
qDebug("writing to current m3u");
Config cfg( "OpiePlayer" );
cfg.setGroup("PlayList");
- QString currentPlaylist = cfg.readEntry("CurrentPlaylist","");
+ QString currentPlaylist = cfg.readEntry("CurrentPlaylist","default");
if( d->selectedFiles->first()) {
Om3u *m3uList;
m3uList = new Om3u( currentPlaylist, IO_ReadWrite | IO_Truncate );