Commit 452a4b9f authored by Mark Bidewell's avatar Mark Bidewell Committed by Jean-Baptiste Kempf

Overload toggleVisible() to update list with media from other interfaces.

Overload toggleVisible() to update list with media from other interfaces.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 9e17b696
...@@ -835,5 +835,20 @@ void VLMWrapper::EditSchedule( const QString name, const QString input, ...@@ -835,5 +835,20 @@ 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;
}
vlmItems.clear();
ui.vlmListItem->clear();
mediasPopulator();
QVLCDialog::toggleVisible();
}
#endif #endif
...@@ -78,6 +78,7 @@ public: ...@@ -78,6 +78,7 @@ public:
return instance; return instance;
}; };
virtual ~VLMDialog(); virtual ~VLMDialog();
void toggleVisible();
VLMWrapper *vlmWrapper; VLMWrapper *vlmWrapper;
vlm_t *p_vlm; vlm_t *p_vlm;
......
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