diff --git a/modules/gui/qt/medialibrary/mlrecentsmodel.cpp b/modules/gui/qt/medialibrary/mlrecentsmodel.cpp index e4c675ce34a9b722679abc22e341b1bd9c3255fc..70acacc2600fae962ffe177fcdacb64b5d6b9b7b 100644 --- a/modules/gui/qt/medialibrary/mlrecentsmodel.cpp +++ b/modules/gui/qt/medialibrary/mlrecentsmodel.cpp @@ -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: diff --git a/modules/gui/qt/medialibrary/mlrecentsvideomodel.cpp b/modules/gui/qt/medialibrary/mlrecentsvideomodel.cpp index 2085a68d1816753e6150e419a199fb56d50b5786..f27bb82af23b9397559ee40e6261a19f76530dec 100644 --- a/modules/gui/qt/medialibrary/mlrecentsvideomodel.cpp +++ b/modules/gui/qt/medialibrary/mlrecentsvideomodel.cpp @@ -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: