1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 21:40:03 +00:00

Merge branch 'finishdrag' into 'master'

Finish draganddrop before startdrag

See merge request OpenMW/openmw!3186
This commit is contained in:
Alexei Kotov 2023-07-11 12:29:35 +00:00
commit 4bbbfe74b3
2 changed files with 5 additions and 0 deletions

View File

@ -60,6 +60,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();