[vlc-commits] [Git][videolan/vlc][master] qt: report 0 size when the ml cache is loaded but empty

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Thu Mar 23 15:26:19 UTC 2023



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
199de053 by Pierre Lamot at 2023-03-23T15:09:15+00:00
qt: report 0 size when the ml cache is loaded but empty

7d70397c7d976677bcf9989c99f636e7cfd383c9 doesn't work properly without this,
model remains in loading state

- - - - -


1 changed file:

- modules/gui/qt/medialibrary/mllistcache.cpp


Changes:

=====================================
modules/gui/qt/medialibrary/mllistcache.cpp
=====================================
@@ -457,6 +457,8 @@ void MLListCache::asyncCountAndLoad()
                     emit endInsertRows();
                     emit localSizeChanged(m_cachedData->totalCount);
                 }
+                else
+                    emit localSizeChanged(0);
             }
 
             m_countTask = 0;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/199de0535b7e53a90ba087a2918746df88e3d72d

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/199de0535b7e53a90ba087a2918746df88e3d72d
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list