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
_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to