Commit 83882abd authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: use qDeleteAll on VLM dialog

parent b165ab1e
......@@ -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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment