From c4405f8d22769e9881484d3f7640e4ba87ed75ee Mon Sep 17 00:00:00 2001 From: zecke Date: Tue, 29 Jun 2004 20:04:17 +0000 Subject: As pointed out by bradc OpiePlayer2 is not able to open desktop files. Now we check if it is a valid desktop file and then ask for the DocLnk::file() and then use that for open. --- diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp index 6a15134..36f77be 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp @@ -327,9 +327,15 @@ void PlayListWidget::addAllVideoToList() { } -void PlayListWidget::setDocument( const QString& fileref ) { +void PlayListWidget::setDocument( const QString& _fileref ) { // odebug << "<<<<<<<>>>>>>>>> "+fileref << oendl; + QString fileref = _fileref; fromSetDocument = TRUE; + + DocLnk lnk(_fileref); + if(lnk.isValid()) + fileref = lnk.file(); + QFileInfo fileInfo(fileref); if ( !fileInfo.exists() ) { -- cgit v0.9.0.2