[vlc-devel] [PATCH 2/2] DnD from Internet Explorer to VLC and support of links (*.lnk)
Rémi Denis-Courmont
remi at remlab.net
Fri Jan 18 23:29:38 CET 2013
Le vendredi 18 janvier 2013 19:42:08, Francois Cartegnie a écrit :
> Le 06/01/2013 17:52, Mario Speiß a écrit :
> > + QString mrl = toURI( url.toEncoded().constData() );
> > + QVLCFileInfo info( url.toLocalFile() );
> > + if( info.exists() && info.isSymLink() )
> > + {
> > + QString target = info.symLinkTarget();
> > + QUrl url;
> > + if( QFile::exists( target ) )
> > + url = QUrl::fromLocalFile( target );
> > + mrl = toURI( url.toEncoded().constData() );
> > + }
> > + if( mrl.length() > 0 )
> > + playlist_Add( THEPL, qtu(mrl), NULL,
>
> I don't see why you would resolve symlink on *nix systems.
+1
> Probably need to #ifdef win32 here.
It's questionable on Windows too. Why should symbolic links work *only* in
case of drag-and-drop?
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list