Commit 4c2c0329 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

qt: do not resolve symbolic link (fixes #17924)

Symbolic links should be resolved when the media is opened, not when it
is added to the playlist - that is how it worked before. With that said,
VLC does not currently have code to parse Windows symbolic links, but
that is not an issue on other operationg systems.
parent d9191f75
......@@ -58,7 +58,9 @@
#include <QStatusBar>
#include <QLabel>
#include <QStackedWidget>
#ifdef _WIN32
#include <QFileInfo>
#endif
#include <QTimer>
......@@ -1449,6 +1451,7 @@ void MainInterface::dropEventPlay( QDropEvent *event, bool b_play, bool b_playli
if( url.isValid() )
{
QString mrl = toURI( url.toEncoded().constData() );
#ifdef _WIN32
QFileInfo info( url.toLocalFile() );
if( info.exists() && info.isSymLink() )
{
......@@ -1464,6 +1467,7 @@ void MainInterface::dropEventPlay( QDropEvent *event, bool b_play, bool b_playli
}
mrl = toURI( url.toEncoded().constData() );
}
#endif
if( mrl.length() > 0 )
{
Open::openMRL( p_intf, mrl, first, b_playlist );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment