[vlc-devel] commit: Qt: fix a crash ( #342332 on ubuntu) (Jean-Baptiste Kempf )

git version control git at videolan.org
Mon Apr 20 21:26:56 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Apr 20 21:25:27 2009 +0200| [f9f2d307e707a510cb93d2ac20f0a87ba5895ace] | committer: Jean-Baptiste Kempf 

Qt: fix a crash ( #342332 on ubuntu)

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

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

diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index c5de69a..a474abd 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -751,7 +751,7 @@ next:
     {
         playlist_item_t *p_root = playlist_ItemGetById( p_playlist,
                                                         rootItem->i_id );
-        if( p_root )
+        if( p_root && i_flag )
         {
             playlist_RecursiveNodeSort( p_playlist, p_root,
                                         i_column_sorting( i_flag ),




More information about the vlc-devel mailing list