[vlc-commits] Qt, playlist: simplify

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


vlc/vlc-2.2 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Nov 23 19:52:16 2015 +0100| [9364d91d2c94aee452ad96563d195ea92121acfd] | committer: Jean-Baptiste Kempf

Qt, playlist: simplify

Ref #11707

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=9364d91d2c94aee452ad96563d195ea92121acfd
---

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

diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index c318e0f..7bd5338 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -569,9 +569,9 @@ void PLModel::processInputItemUpdate( )
     {
         PLItem *item = findByInputId( rootItem, input_GetItem( p_input )->i_id );
         if( item ) emit currentIndexChanged( index( item, 0 ) );
-    }
 
-    processInputItemUpdate( input_GetItem( p_input ) );
+        processInputItemUpdate( input_GetItem( p_input ) );
+    }
 }
 
 void PLModel::processInputItemUpdate( input_item_t *p_item )



More information about the vlc-commits mailing list