vlc | branch: master | Prince Gupta <guptaprince8...@gmail.com> | Thu Dec 24 20:53:14 2020 +0530| [f2220c4f629d0838c7295cab20226fa31bbbb196] | committer: Pierre Lamot
qt: correctly convert role to sort criteria in mlvideomodel Signed-off-by: Pierre Lamot <pie...@videolabs.io> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f2220c4f629d0838c7295cab20226fa31bbbb196 --- modules/gui/qt/medialibrary/mlvideomodel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/gui/qt/medialibrary/mlvideomodel.cpp b/modules/gui/qt/medialibrary/mlvideomodel.cpp index f2dcfad4b3..b9bbde25d0 100644 --- a/modules/gui/qt/medialibrary/mlvideomodel.cpp +++ b/modules/gui/qt/medialibrary/mlvideomodel.cpp @@ -99,6 +99,7 @@ vlc_ml_sorting_criteria_t MLVideoModel::roleToCriteria(int role) const case VIDEO_TITLE: return VLC_ML_SORTING_ALPHA; case VIDEO_DURATION: + case VIDEO_DURATION_SHORT: return VLC_ML_SORTING_DURATION; case VIDEO_PLAYCOUNT: return VLC_ML_SORTING_PLAYCOUNT; _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits