mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-07-04 08:51:35 +00:00
[Client] Don't finish drag & drop that is supposed to be unsuccessful
This prevents items from vanishing when your attempt to drop them in a full container is denied.
This commit is contained in:
parent
a6c6db89fc
commit
afd17e5a48
1 changed files with 7 additions and 6 deletions
|
@ -197,12 +197,13 @@ namespace MWGui
|
||||||
/*
|
/*
|
||||||
Start of tes3mp change (major)
|
Start of tes3mp change (major)
|
||||||
|
|
||||||
Avoid running any of the original code for dropping items, to prevent possibilities
|
For valid drops, avoid running the original code for the item transfer, to prevent unilateral
|
||||||
for item duping or interaction with restricted containers
|
item duping or interaction on this client
|
||||||
|
|
||||||
Instead, finish the drag in a way that removes the items in it
|
Instead, finish the drag in a way that removes the items in it, and let the server's reply handle
|
||||||
|
the rest
|
||||||
*/
|
*/
|
||||||
//if (success)
|
if (success)
|
||||||
// mDragAndDrop->drop(mModel, mItemView);
|
// mDragAndDrop->drop(mModel, mItemView);
|
||||||
mDragAndDrop->finish(true);
|
mDragAndDrop->finish(true);
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue