Commit 3de79f56 authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: fix MLModel uris

parent 8de1d289
...@@ -206,11 +206,15 @@ QVariant MLItem::data( ml_select_e columntype ) const ...@@ -206,11 +206,15 @@ QVariant MLItem::data( ml_select_e columntype ) const
QUrl uri = getURI(); QUrl uri = getURI();
vlc_mutex_lock( &media->lock ); vlc_mutex_lock( &media->lock );
if ( uri.scheme() != "file" ) if ( uri.scheme() != "file" )
{
ret = QUrl::fromPercentEncoding( uri.toString().toUtf8() ); ret = QUrl::fromPercentEncoding( uri.toString().toUtf8() );
}
QFileInfo p_file( uri.toLocalFile() ); else
ret = p_file.fileName().isEmpty() ? p_file.absoluteFilePath() {
: p_file.fileName(); QFileInfo p_file( uri.toLocalFile() );
ret = p_file.fileName().isEmpty() ? p_file.absoluteFilePath()
: p_file.fileName();
}
} else { } else {
ret = temp; ret = temp;
} }
......
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