]> git.sesse.net Git - vlc/commitdiff
Qt : Keep preparsed items synced in playlist
authorBesnard Jean-Baptiste <jbbesnard@actech-innovation.com>
Wed, 22 Jul 2009 07:21:43 +0000 (09:21 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Wed, 22 Jul 2009 08:24:50 +0000 (11:24 +0300)
Signed-off-by: Ilkka Ollakka <ileoo@videolan.org>
modules/gui/qt4/input_manager.cpp

index f0e57d05dbed44c2454068edeffc639e92079124..c3d65d52bf0e55d98e80afb5d75fa7fe0922ca08 100644 (file)
@@ -150,6 +150,9 @@ void InputManager::customEvent( QEvent *event )
     int i_type = event->type();
     IMEvent *ple = static_cast<IMEvent *>(event);
 
+    if( i_type == ItemChanged_Type )
+        UpdateMeta( ple->p_item->i_id );
+
     if( !hasInput() )
         return;
 
@@ -178,7 +181,6 @@ void InputManager::customEvent( QEvent *event )
             UpdateArt();
             /* Update duration of file */
         }
-        UpdateMeta( ple->p_item->i_id );
         break;
     case ItemStateChanged_Type:
         // TODO: Fusion with above state