From 758c9e817087252894b15c6f7476c1f16a02f65d Mon Sep 17 00:00:00 2001 From: llornkcor Date: Sat, 20 Apr 2002 18:29:06 +0000 Subject: file/url --- (limited to 'core/multimedia') 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() { qDebug(filename); DocLnk lnk; QString name = filename.right(filename.length()-filename.find("http://")-7); + qDebug(name); lnk.setName( name); //sets file name // lnk.setComment(); lnk.setFile(filename); //sets File property // problem is, the launcher sees this as a broken link and does not display it :( - lnk.setType("audio/x-mpegurl"); lnk.setExec("opieplayer"); lnk.setIcon("opieplayer/MPEGPlayer"); - QString cmd="touch "+QPEApplication::documentDir()+"audio/x-mpegurl/"+name; - system( cmd.latin1()); -// d->selectedFiles->addToSelection( **dit ); if(!lnk.writeLink()) qDebug("Writing doclink did not work"); + d->selectedFiles->addToSelection( lnk); if(fileDlg) delete fileDlg; } -- cgit v0.9.0.2