Permalink
Browse files

Dont move item back when not clicking on a slot

  • Loading branch information...
PilzAdam committed Dec 3, 2013
1 parent 1309e52 commit 60113bde74784f4a0125ffa005e9404fbd5cb5b1
Showing with 1 addition and 6 deletions.
  1. +1 −6 src/guiFormSpecMenu.cpp
View
@@ -2462,12 +2462,7 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event)
move_amount = 0;
}
}
else if(getAbsoluteClippingRect().isPointInside(m_pointer))
{
// Clicked somewhere else: deselect
m_selected_amount = 0;
}
else
else if (!getAbsoluteClippingRect().isPointInside(m_pointer))
{
// Clicked outside of the window: drop
if(button == 1) // right

0 comments on commit 60113bd

Please sign in to comment.