[vlc-devel] commit: Qt4 playlist: fix crash when deleting nodes and their children ( Jakob Leben )
git version control
git at videolan.org
Wed Aug 12 01:08:16 CEST 2009
vlc | branch: master | Jakob Leben <jakob.leben at gmail.com> | Mon Aug 10 01:09:27 2009 +0200| [dac9e25bcf4c50ec7cba7a6a08f7af1309849748] | committer: Jean-Baptiste Kempf
Qt4 playlist: fix crash when deleting nodes and their children
This patch fixes the crash when a node is selected together with it's children and then deleted
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dac9e25bcf4c50ec7cba7a6a08f7af1309849748
---
.../gui/qt4/components/playlist/playlist_model.cpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index 1d389ea..207b0f5 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -738,6 +738,7 @@ void PLModel::doDelete( QModelIndexList selected )
recurseDelete( item->children, &selected );
doDeleteItem( item, &selected );
}
+ if( i > selected.size() ) i = selected.size();
}
}
More information about the vlc-devel
mailing list