summaryrefslogtreecommitdiff
path: root/src/gui/widgets/dropshortcutcontainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/dropshortcutcontainer.cpp')
-rw-r--r--src/gui/widgets/dropshortcutcontainer.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/widgets/dropshortcutcontainer.cpp b/src/gui/widgets/dropshortcutcontainer.cpp
index f74db990b..e26183116 100644
--- a/src/gui/widgets/dropshortcutcontainer.cpp
+++ b/src/gui/widgets/dropshortcutcontainer.cpp
@@ -254,10 +254,7 @@ void DropShortcutContainer::mouseReleased(gcn::MouseEvent &event)
}
if (!dragDrop.isEmpty())
{
- DragDropSource src = dragDrop.getSource();
- if (src == DRAGDROP_SOURCE_INVENTORY
- || src == DRAGDROP_SOURCE_OUTFIT
- || src == DRAGDROP_SOURCE_DROP)
+ if (dragDrop.isSourceItemContainer())
{
dropShortcut->setItems(index, dragDrop.getItem(),
dragDrop.getItemColor());