From 012e93a73382df07238a122f9de884b5270c252e Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Thu, 18 Feb 2010 18:15:19 +0100 Subject: [PATCH] Qt4: fix pontential NULL dereference and show the right containing forlder. --- modules/gui/qt4/components/playlist/playlist_model.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp index fdb9f288a9..8345c0e722 100644 --- a/modules/gui/qt4/components/playlist/playlist_model.cpp +++ b/modules/gui/qt4/components/playlist/playlist_model.cpp @@ -1013,11 +1013,11 @@ void PLModel::popupExplore() 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 ) ) + if( !EMPTY_STR( psz_access ) && ( + !strncasecmp( psz_access, "file", 4 ) || + !strncasecmp( psz_access, "dire", 4 ) )) { - QFileInfo info( qfu( psz_meta ) ); + QFileInfo info( qfu( psz_path ) ); QDesktopServices::openUrl( QUrl::fromLocalFile( info.absolutePath() ) ); } -- 2.39.2