Skip to content
Snippets Groups Projects
Commit d558c39c authored by Pierre Lamot's avatar Pierre Lamot
Browse files

qt medialib: reset history model on history changed

parent b3715490
No related branches found
No related tags found
No related merge requests found
......@@ -78,6 +78,9 @@ void MLRecentsModel::onVlcMlEvent( const MLEvent &event )
{
switch ( event.i_type )
{
case VLC_ML_EVENT_HISTORY_CHANGED:
emit resetRequested();
break;
case VLC_ML_EVENT_MEDIA_ADDED:
case VLC_ML_EVENT_MEDIA_UPDATED:
case VLC_ML_EVENT_MEDIA_DELETED:
......
......@@ -96,6 +96,9 @@ void MLRecentsVideoModel::onVlcMlEvent( const MLEvent &event )
{
switch ( event.i_type )
{
case VLC_ML_EVENT_HISTORY_CHANGED:
emit resetRequested();
break;
case VLC_ML_EVENT_MEDIA_ADDED:
case VLC_ML_EVENT_MEDIA_UPDATED:
case VLC_ML_EVENT_MEDIA_DELETED:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment