]> git.sesse.net Git - vlc/commitdiff
Process all playlist updates
authorClément Stenac <zorglub@videolan.org>
Sat, 16 Sep 2006 19:20:11 +0000 (19:20 +0000)
committerClément Stenac <zorglub@videolan.org>
Sat, 16 Sep 2006 19:20:11 +0000 (19:20 +0000)
modules/gui/qt4/playlist_model.cpp
modules/gui/qt4/qt4.cpp

index eb050dbacedf569e9dd62f8b8fd7f8ca258497df..10a88e377d793824acd5b060bed88ff18f30ba22 100644 (file)
@@ -470,7 +470,6 @@ void PLModel::ProcessItemRemoval( int i_id )
     if( i_id <= 0 ) return;
     if( i_id == i_cached_id ) i_cached_id = -1;
     i_cached_input_id = -1;
-
     PLItem *item = FindById( rootItem, i_id );
     if( item )
         item->remove( item );
@@ -745,7 +744,7 @@ static int PlaylistChanged( vlc_object_t *p_this, const char *psz_variable,
                             vlc_value_t oval, vlc_value_t nval, void *param )
 {
     PLModel *p_model = (PLModel *) param;
-    p_model->b_need_update = VLC_TRUE;
+//    p_model->b_need_update = VLC_TRUE;
     return VLC_SUCCESS;
 }
 
@@ -787,8 +786,8 @@ static int ItemAppended( vlc_object_t *p_this, const char *psz_variable,
 
     if( ++p_model->i_items_to_append >= 50 )
     {
-        p_model->b_need_update = VLC_TRUE;
-        return VLC_SUCCESS;
+//        p_model->b_need_update = VLC_TRUE;
+//        return VLC_SUCCESS;
     }
     PLEvent *event = new PLEvent(  p_add );
     QApplication::postEvent( p_model, static_cast<QEvent*>(event) );
index 824283b4af35ca42b708a286fca9978b8b96a210..5cb8a6eb20dc8688ceef6d6104e2f9b541084e52 100644 (file)
@@ -145,6 +145,7 @@ static void Init( intf_thread_t *p_intf )
 
     app->setQuitOnLastWindowClosed( false );
     app->exec();
+ //   fprintf( stderr, "Qt execution terminated\n" );
     MainInputManager::killInstance();
     delete p_intf->p_sys->p_mi;
 }