Commit 012e93a7 authored by Rémi Duraffort's avatar Rémi Duraffort

Qt4: fix pontential NULL dereference and show the right containing forlder.

parent f5de3aee
...@@ -1013,11 +1013,11 @@ void PLModel::popupExplore() ...@@ -1013,11 +1013,11 @@ void PLModel::popupExplore()
char *psz_path; char *psz_path;
input_SplitMRL( &psz_access, &psz_demux, &psz_path, psz_meta ); input_SplitMRL( &psz_access, &psz_demux, &psz_path, psz_meta );
if( EMPTY_STR( psz_access ) || if( !EMPTY_STR( psz_access ) && (
!strncasecmp( psz_access, "file", 4 ) || !strncasecmp( psz_access, "file", 4 ) ||
!strncasecmp( psz_access, "dire", 4 ) ) !strncasecmp( psz_access, "dire", 4 ) ))
{ {
QFileInfo info( qfu( psz_meta ) ); QFileInfo info( qfu( psz_path ) );
QDesktopServices::openUrl( QDesktopServices::openUrl(
QUrl::fromLocalFile( info.absolutePath() ) ); 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