Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
46a7e6be by Fatih Uzunoglu at 2026-02-05T13:15:23+00:00
qml: fix NativeMethodBehavior bug with dragging in `BrowseTreeDisplay`
This is a Qt bug, but the workaround appears to be working fine. We
are already doing the same in other places including `DragItem.qml`
- - - - -
1 changed file:
- modules/gui/qt/network/qml/BrowseTreeDisplay.qml
Changes:
=====================================
modules/gui/qt/network/qml/BrowseTreeDisplay.qml
=====================================
@@ -115,7 +115,13 @@ MainViewLoader {
return {
artwork: data.artwork,
fallback: fallbackImage,
- textureProvider:
root.currentItem.itemAtIndex(index)?.artworkTextureProvider
+ // FIXME: `call(null, index)` is to prevent the following
warning in list view mode
+ // where the view is a C++ type:
+ // > Calling C++ methods with 'this' objects different
from the one they
+ // > were retrieved from is broken, due to historical
reasons. The original
+ // > object is used as 'this' object. You can allow
the given 'this' object
+ // > to be used by setting 'pragma
NativeMethodBehavior: AcceptThisObject'
+ textureProvider: root.currentItem?.itemAtIndex.call(null,
index)?.artworkTextureProvider ?? null
}
}
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/46a7e6bee7a6d4339ef9bf44b39f72341a46a824
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/46a7e6bee7a6d4339ef9bf44b39f72341a46a824
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