summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show 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
@@ -981,25 +981,23 @@ void PlayListWidget::openFile() {
fileDlg = new InputDialog(this,tr("Open file or URL"),TRUE, 0);
fileDlg->exec();
if( fileDlg->result() == 1 ) {
filename = fileDlg->LineEdit1->text();
}
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;
}