Skip to content
Snippets Groups Projects
Commit 0622b0c0 authored by Prince Gupta's avatar Prince Gupta :speech_balloon:
Browse files

qt/MLVideoModel: only reset model if added item is a video

parent 7907c847
No related branches found
No related tags found
1 merge request!1410qt/MLVideoModel: don't reset model on media update event
......@@ -152,6 +152,8 @@ void MLVideoModel::onVlcMlEvent(const MLEvent &event)
switch (event.i_type)
{
case VLC_ML_EVENT_MEDIA_ADDED:
m_need_reset = (event.creation.media.i_type == VLC_ML_MEDIA_TYPE_VIDEO);
break;
case VLC_ML_EVENT_MEDIA_DELETED:
m_need_reset = true;
break;
......
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