Commit 8332a26a authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Qt: toAscii has been deprecated

Ref #8532
parent b25fe822
......@@ -1007,7 +1007,7 @@ bool PLModel::action( QAction *action, const QModelIndexList &indexes )
case ACTION_ENQUEUEFILE:
foreach( const QString &uri, a.uris )
playlist_Add( THEPL, uri.toAscii().constData(),
playlist_Add( THEPL, uri.toLatin1().constData(),
NULL, PLAYLIST_APPEND | PLAYLIST_PREPARSE,
PLAYLIST_END,
getPLRootType() == ROOTTYPE_CURRENT_PLAYING,
......@@ -1016,7 +1016,7 @@ bool PLModel::action( QAction *action, const QModelIndexList &indexes )
case ACTION_ENQUEUEDIR:
if( a.uris.isEmpty() ) break;
p_input = input_item_New( a.uris.first().toAscii().constData(), NULL );
p_input = input_item_New( a.uris.first().toLatin1().constData(), NULL );
if( unlikely( p_input == NULL ) ) break;
/* FIXME: playlist_AddInput() can fail */
......
......@@ -296,7 +296,7 @@ void StandardPLPanel::popupAction( QAction *action )
case VLCModelSubInterface::ACTION_EXPLORE:
/* locally handled only */
temp = model->getURI( index );
if( ! temp.isEmpty() ) path = make_path( temp.toAscii().constData() );
if( ! temp.isEmpty() ) path = make_path( temp.toLatin1().constData() );
if( path == NULL ) return;
QDesktopServices::openUrl(
QUrl::fromLocalFile( QFileInfo( qfu( path ) ).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