Overload toggleVisible() to update list with media from other interfaces.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
}
}
+void VLMDialog::toggleVisible()
+{
+ QList<VLMAWidget *>::iterator it;
+ for( it = vlmItems.begin(); it != vlmItems.end(); it++ )
+ {
+ VLMAWidget *item = *it;
+ delete item;
+ item = NULL;
+ }
+ vlmItems.clear();
+ ui.vlmListItem->clear();
+ mediasPopulator();
+ QVLCDialog::toggleVisible();
+}
+
#endif
return instance;
};
virtual ~VLMDialog();
+ void toggleVisible();
VLMWrapper *vlmWrapper;
vlm_t *p_vlm;