1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-28 10:39:42 +00:00

Finish draganddrop before startdrag

This commit is contained in:
Kindi 2023-07-11 12:29:35 +00:00 committed by Alexei Kotov
parent 5c9dbdaceb
commit 00e5f31242
2 changed files with 5 additions and 0 deletions

View file

@ -59,6 +59,7 @@
Bug #7413: Generated wilderness cells don't spawn fish
Bug #7415: Unbreakable lock discrepancies
Bug #7428: AutoCalc flag is not used to calculate enchantment costs
Bug #7459: Icons get stacked on the cursor when picking up multiple items simultaneously
Feature #3537: Shader-based water ripples
Feature #5492: Let rain and snow collide with statics
Feature #6447: Add LOD support to Object Paging

View file

@ -762,6 +762,10 @@ namespace MWGui
}
if (i == mTradeModel->getItemCount())
throw std::runtime_error("Added item not found");
if (mDragAndDrop->mIsOnDragAndDrop)
mDragAndDrop->finish();
mDragAndDrop->startDrag(i, mSortModel, mTradeModel, mItemView, count);
MWBase::Environment::get().getWindowManager()->updateSpellWindow();