Commit 42d66281 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Use the input_MRLSplit to open containing folder for directory and files only.

parent 151e00e3
......@@ -946,9 +946,19 @@ void PLModel::popupExplore()
char *psz_meta = input_item_GetURI( p_input );
if( psz_meta )
{
/* FIXME add a MRLSplit like function */
const char *psz_access;
const char *psz_demux;
char *psz_path;
input_SplitMRL( &psz_access, &psz_demux, &psz_path, psz_meta );
if( EMPTY_STR( psz_access ) ||
!strncasecmp( psz_access, "file", 4 ) ||
!strncasecmp( psz_access, "dire", 4 ) )
{
QFileInfo info( qfu( psz_meta ) );
QDesktopServices::openUrl( QUrl::fromLocalFile( info.absolutePath() ) );
QDesktopServices::openUrl(
QUrl::fromLocalFile( info.absolutePath() ) );
}
free( psz_meta );
}
}
......
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