Commit 326dd4db authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4: simplification and correctness.

(cherry picked from commit 17af2805)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent e2f8aa05
...@@ -386,8 +386,7 @@ void DialogsProvider::addFromSimple( bool pl, bool go) ...@@ -386,8 +386,7 @@ void DialogsProvider::addFromSimple( bool pl, bool go)
int i = 0; int i = 0;
foreach( QString file, files ) foreach( QString file, files )
{ {
const char * psz_utf8 = qtu( toNativeSeparators( file ) ); playlist_Add( THEPL, qtu( toNativeSeparators( file ) ), NULL,
playlist_Add( THEPL, psz_utf8, NULL,
go ? ( PLAYLIST_APPEND | ( i ? 0 : PLAYLIST_GO ) | go ? ( PLAYLIST_APPEND | ( i ? 0 : PLAYLIST_GO ) |
( i ? PLAYLIST_PREPARSE : 0 ) ) ( i ? PLAYLIST_PREPARSE : 0 ) )
: ( PLAYLIST_APPEND | PLAYLIST_PREPARSE ), : ( PLAYLIST_APPEND | PLAYLIST_PREPARSE ),
......
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