From 2ff03a7b5ad91018203472eb2f85d5e3db414787 Mon Sep 17 00:00:00 2001 From: bensaine Date: Sun, 16 Jan 2022 21:09:09 -0500 Subject: [PATCH] on swap_item, end dragging state --- ryzom/client/src/interface_v3/action_handler_item.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ryzom/client/src/interface_v3/action_handler_item.cpp b/ryzom/client/src/interface_v3/action_handler_item.cpp index ff4034b3d..f931f1d76 100644 --- a/ryzom/client/src/interface_v3/action_handler_item.cpp +++ b/ryzom/client/src/interface_v3/action_handler_item.cpp @@ -747,6 +747,10 @@ public: CInterfaceElement *pElt = CWidgetManager::getInstance()->getElementFromId(src); CDBCtrlSheet *pCSSrc = dynamic_cast(pElt); CDBCtrlSheet *pCSDst = dynamic_cast(pCaller); + + // end drag + getInventory().endDrag(); + if ((pCSSrc == NULL) || (pCSDst == NULL)) return; if (pCSSrc->getType() == CCtrlSheetInfo::SheetType_Item)