[vlc-commits] [Git][videolan/vlc][master] qt: fix networkmediamodel with folder as source

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Dec 15 13:08:48 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
c2df5e22 by Prince Gupta at 2023-12-15T12:33:22+00:00
qt: fix networkmediamodel with folder as source

correctly reset internal task id

- - - - -


1 changed file:

- modules/gui/qt/util/listcache.hxx


Changes:

=====================================
modules/gui/qt/util/listcache.hxx
=====================================
@@ -469,6 +469,8 @@ void ListCache<T>::asyncCountAndLoad()
             if (m_countTask != taskId)
                 return;
 
+            m_countTask = 0;
+
             //quite unlikley but model may change between count and load
             if (unlikely(list.size() > maximumCount))
             {
@@ -504,7 +506,6 @@ void ListCache<T>::asyncCountAndLoad()
                     emit localSizeChanged(0, m_cachedData->maximumCount);
             }
 
-            m_countTask = 0;
             if (m_needReload)
             {
                 m_needReload  = false;



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c2df5e22e11b33b626b66c2d7ec4490392ae0969
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