[vlc-commits] Qt, playlist: simplify

Jean-Baptiste Kempf git at videolan.org
Mon Nov 23 19:49:23 CET 2015


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Nov 23 19:49:02 2015 +0100| [3448e372b843108b32527a8a423d690ee7f7256d] | committer: Jean-Baptiste Kempf

Qt, playlist: simplify

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3448e372b843108b32527a8a423d690ee7f7256d
---

 modules/gui/qt4/components/playlist/playlist_model.cpp |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index c552609..f8f794c 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -581,11 +581,8 @@ void PLModel::processInputItemUpdate( )
     input_thread_t *p_input = THEMIM->getInput();
     if( !p_input ) return;
 
-    if( p_input )
-    {
-        PLItem *item = findByInputId( rootItem, input_GetItem( p_input )->i_id );
-        if( item ) emit currentIndexChanged( index( item, 0 ) );
-    }
+    PLItem *item = findByInputId( rootItem, input_GetItem( p_input )->i_id );
+    if( item ) emit currentIndexChanged( index( item, 0 ) );
 
     processInputItemUpdate( input_GetItem( p_input ) );
 }



More information about the vlc-commits mailing list