Commit 9f67114e authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: try to fix the "open containing folder" on Win32

Should close #3536
(cherry picked from commit 89f5d36846718c86518e11d6f542e61b8823b5ab)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent b14d0d46
......@@ -1066,6 +1066,12 @@ void PLModel::popupExplore()
!strncasecmp( psz_access, "file", 4 ) ||
!strncasecmp( psz_access, "dire", 4 ) ))
{
#ifdef WIN32
/* Qt openURL doesn't know to open files that starts with a / or \ */
if( psz_path[0] == '/' || psz_path[0] == '\\' )
psz_path++;
#endif
QFileInfo info( qfu( decode_URI( psz_path ) ) );
QDesktopServices::openUrl(
QUrl::fromLocalFile( info.absolutePath() ) );
......
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