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, ...@@ -892,14 +892,9 @@ void VLMWrapper::EditSchedule( const QString& name, const QString& input,
void VLMDialog::toggleVisible() void VLMDialog::toggleVisible()
{ {
QList<VLMAWidget *>::iterator it; qDeleteAll( vlmItems );
for( it = vlmItems.begin(); it != vlmItems.end(); ++it )
{
VLMAWidget *item = *it;
delete item;
item = NULL;
}
vlmItems.clear(); vlmItems.clear();
ui.vlmListItem->clear(); ui.vlmListItem->clear();
mediasPopulator(); mediasPopulator();
QVLCDialog::toggleVisible(); 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