[vlc-commits] Qt: use qDeleteAll on VLM dialog
Jean-Baptiste Kempf
git at videolan.org
Tue Aug 16 18:06:46 CEST 2011
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Aug 16 18:06:16 2011 +0200| [83882abdb00722e8e3ce45d2201e64dad49d152e] | committer: Jean-Baptiste Kempf
Qt: use qDeleteAll on VLM dialog
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=83882abdb00722e8e3ce45d2201e64dad49d152e
---
modules/gui/qt4/dialogs/vlm.cpp | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/modules/gui/qt4/dialogs/vlm.cpp b/modules/gui/qt4/dialogs/vlm.cpp
index 02ba86d..30669d2 100644
--- a/modules/gui/qt4/dialogs/vlm.cpp
+++ b/modules/gui/qt4/dialogs/vlm.cpp
@@ -892,14 +892,9 @@ void VLMWrapper::EditSchedule( const QString& name, const QString& input,
void VLMDialog::toggleVisible()
{
- QList<VLMAWidget *>::iterator it;
- for( it = vlmItems.begin(); it != vlmItems.end(); ++it )
- {
- VLMAWidget *item = *it;
- delete item;
- item = NULL;
- }
+ qDeleteAll( vlmItems );
vlmItems.clear();
+
ui.vlmListItem->clear();
mediasPopulator();
QVLCDialog::toggleVisible();
More information about the vlc-commits
mailing list