[vlc-commits] qt: track count of MusicGenre model was missing

Pierre Lamot git at videolan.org
Fri Feb 14 12:00:06 CET 2020


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Thu Jan 30 18:08:56 2020 +0100| [fd7ab4de6c4581da3598211d4c6e845660325a4f] | committer: Jean-Baptiste Kempf

qt: track count of MusicGenre model was missing

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fd7ab4de6c4581da3598211d4c6e845660325a4f
---

 modules/gui/qt/medialibrary/mlgenre.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/gui/qt/medialibrary/mlgenre.cpp b/modules/gui/qt/medialibrary/mlgenre.cpp
index a20686c16b..aee536fd41 100644
--- a/modules/gui/qt/medialibrary/mlgenre.cpp
+++ b/modules/gui/qt/medialibrary/mlgenre.cpp
@@ -193,6 +193,7 @@ MLGenre::MLGenre(vlc_medialibrary_t* ml, const vlc_ml_genre_t *_data, QObject *_
     , m_ml      ( ml )
     , m_id      ( _data->i_id, VLC_ML_PARENT_GENRE )
     , m_name    ( QString::fromUtf8( _data->psz_name ) )
+    , m_nbTracks ( (unsigned int)_data->i_nb_tracks )
 
 {
     assert(_data);
@@ -204,6 +205,7 @@ MLGenre::MLGenre(const MLGenre &genre, QObject *_parent)
     , m_ml      ( genre.m_ml )
     , m_id      ( genre.m_id )
     , m_name    ( genre.m_name )
+    , m_nbTracks( genre.m_nbTracks )
 {
 
 }



More information about the vlc-commits mailing list