author | harlekin <harlekin> | 2002-07-31 23:56:39 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-07-31 23:56:39 (UTC) |
commit | b2978cf32ae5e6954fb118c89c1f70ee05d53ef4 (patch) (side-by-side diff) | |
tree | c9a90786a9676014cc1abba61bc0828cf61beb67 | |
parent | 3a4d367a8e5e9f599e0487326c105de9aa773bfe (diff) | |
download | opie-b2978cf32ae5e6954fb118c89c1f70ee05d53ef4.zip opie-b2978cf32ae5e6954fb118c89c1f70ee05d53ef4.tar.gz opie-b2978cf32ae5e6954fb118c89c1f70ee05d53ef4.tar.bz2 |
fix
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp index 9373f6b..cd53748 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp @@ -942,38 +942,33 @@ void PlayListWidget::openFile() { QString filename, name; InputDialog *fileDlg; fileDlg = new InputDialog(this,tr("Open file or URL"),TRUE, 0); fileDlg->exec(); if( fileDlg->result() == 1 ) { filename = fileDlg->LineEdit1->text(); qDebug("Selected filename is "+filename); if(filename.right(3) == "m3u") { readm3u( filename ); } else if(filename.right(3) == "pls") { readPls( filename ); } else { DocLnk lnk; lnk.setName(filename); //sets file name - // probably not needed anymore either - if(filename.right(1) != "/" && filename.right(3) != "mp3" && filename.right(3) != "MP3") { - filename += "/"; - } lnk.setFile(filename); //sets File property - lnk.setType("audio/x-mpegurl"); lnk.setExec("opieplayer"); lnk.setIcon("opieplayer/MPEGPlayer"); if(!lnk.writeLink()) { qDebug("Writing doclink did not work"); } d->selectedFiles->addToSelection( lnk); } } if(fileDlg) { delete fileDlg; } } void PlayListWidget::keyReleaseEvent( QKeyEvent *e) |