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


Commits:
a09caaa3 by Prince Gupta at 2024-04-30T04:42:12+00:00
qt: fix removal in NetworkDeviceModel

- - - - -


1 changed file:

- modules/gui/qt/network/networkdevicemodel.cpp


Changes:

=====================================
modules/gui/qt/network/networkdevicemodel.cpp
=====================================
@@ -303,8 +303,6 @@ public:
         bool dataChanged = false;
         for (const SharedInputItem& p_item : inputList)
         {
-            auto items = m_items;
-
             auto oldItem = std::make_shared<NetworkDeviceItem>(p_item, 
mediaSource);
             NetworkDeviceItemSet::iterator it = m_items.find(oldItem);
             if (it != m_items.end())
@@ -330,7 +328,7 @@ public:
 
                 if (!found)
                 {
-                    items.erase(it);
+                    m_items.erase(it);
                     dataChanged = true;
                 }
             }



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

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


VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to