[ui] fix drag and drop external images on Viewer2D

This commit is contained in:
Loïc Vital 2022-09-29 11:40:28 +02:00 committed by Fabien Castan
parent b91d0b372e
commit 88e822a9de
2 changed files with 29 additions and 6 deletions

View file

@ -152,8 +152,7 @@ Item {
anchors.fill: parent
keys: ["text/uri-list"]
onDropped: {
viewer2D.source = drop.urls[0]
viewer2D.metadata = {}
viewer2D.loadExternal(drop.urls[0]);
}
}
Rectangle {