summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-04-20 18:29:06 (UTC)
committer llornkcor <llornkcor>2002-04-20 18:29:06 (UTC)
commit758c9e817087252894b15c6f7476c1f16a02f65d (patch) (unidiff)
treede3a2fa88c3eeffae5602928b3a57c8f9ac2ac86
parentb37f1e1eec635165da7dbf06e968cd5368d92d4e (diff)
downloadopie-758c9e817087252894b15c6f7476c1f16a02f65d.zip
opie-758c9e817087252894b15c6f7476c1f16a02f65d.tar.gz
opie-758c9e817087252894b15c6f7476c1f16a02f65d.tar.bz2
file/url
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/playlistwidget.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/multimedia/opieplayer/playlistwidget.cpp b/core/multimedia/opieplayer/playlistwidget.cpp
index 11f9752..4b1ff22 100644
--- a/core/multimedia/opieplayer/playlistwidget.cpp
+++ b/core/multimedia/opieplayer/playlistwidget.cpp
@@ -986,20 +986,18 @@ void PlayListWidget::openFile() {
986 qDebug(filename); 986 qDebug(filename);
987 DocLnk lnk; 987 DocLnk lnk;
988 QString name = filename.right(filename.length()-filename.find("http://")-7); 988 QString name = filename.right(filename.length()-filename.find("http://")-7);
989 qDebug(name);
989 lnk.setName( name); //sets file name 990 lnk.setName( name); //sets file name
990// lnk.setComment(); 991// lnk.setComment();
991 lnk.setFile(filename); //sets File property 992 lnk.setFile(filename); //sets File property
992// problem is, the launcher sees this as a broken link and does not display it :( 993// problem is, the launcher sees this as a broken link and does not display it :(
993
994 lnk.setType("audio/x-mpegurl"); 994 lnk.setType("audio/x-mpegurl");
995 lnk.setExec("opieplayer"); 995 lnk.setExec("opieplayer");
996 lnk.setIcon("opieplayer/MPEGPlayer"); 996 lnk.setIcon("opieplayer/MPEGPlayer");
997 QString cmd="touch "+QPEApplication::documentDir()+"audio/x-mpegurl/"+name;
998 system( cmd.latin1());
999// d->selectedFiles->addToSelection( **dit );
1000 997
1001 if(!lnk.writeLink()) 998 if(!lnk.writeLink())
1002 qDebug("Writing doclink did not work"); 999 qDebug("Writing doclink did not work");
1000 d->selectedFiles->addToSelection( lnk);
1003 if(fileDlg) 1001 if(fileDlg)
1004 delete fileDlg; 1002 delete fileDlg;
1005} 1003}