summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/itemcontainer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp
index eccd21735..20c8b9052 100644
--- a/src/gui/widgets/itemcontainer.cpp
+++ b/src/gui/widgets/itemcontainer.cpp
@@ -488,6 +488,7 @@ void ItemContainer::mouseReleased(gcn::MouseEvent &event)
if (index == mSelectedIndex || mSelectedIndex == -1)
return;
Net::getInventoryHandler()->moveItem(mSelectedIndex, index);
+ selectNone();
}
else
{
@@ -548,8 +549,6 @@ void ItemContainer::mouseReleased(gcn::MouseEvent &event)
}
}
}
-
- selectNone();
}
void ItemContainer::mouseMoved(gcn::MouseEvent &event)