[vlmc-devel] commit: MediaCellView: Fix crash introduced in previous commit. ( Hugo Beauzee-Luyssen )
git at videolan.org
git at videolan.org
Tue Mar 16 02:34:10 CET 2010
vlmc | branch: master | Hugo Beauzee-Luyssen <beauze.h at gmail.com> | Tue Mar 16 02:23:38 2010 +0100| [2a8e06a27a5160ec2790e45e64b38bb479ba2e27] | committer: Hugo Beauzee-Luyssen
MediaCellView: Fix crash introduced in previous commit.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=2a8e06a27a5160ec2790e45e64b38bb479ba2e27
---
src/Gui/library/MediaCellView.cpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/Gui/library/MediaCellView.cpp b/src/Gui/library/MediaCellView.cpp
index a2ade57..20ab2b6 100644
--- a/src/Gui/library/MediaCellView.cpp
+++ b/src/Gui/library/MediaCellView.cpp
@@ -105,7 +105,12 @@ void MediaCellView::setTitle( const QString& title )
void
MediaCellView::nbClipUpdated()
{
- quint32 nbClips = m_clip->getParent()->getChilds()->count();
+ quint32 nbClips;
+
+ if ( m_clip->isRootClip() == true )
+ nbClips = m_clip->getChilds()->count();
+ else
+ nbClips = m_clip->getParent()->getChilds()->count();
if ( nbClips == 0 )
{
More information about the Vlmc-devel
mailing list