diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-07-03 18:41:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-07-03 18:41:44 +0300 |
commit | 0b44672a83c505d0e073ba095e2283e60a4016ce (patch) | |
tree | 069aaedc8f106b10b5543c7609e7273162a178eb /src/gui/widgets | |
parent | 3e7c8e44bdba6bf7a585bb40e9e75cef81caecb7 (diff) | |
download | plus-0b44672a83c505d0e073ba095e2283e60a4016ce.tar.gz plus-0b44672a83c505d0e073ba095e2283e60a4016ce.tar.bz2 plus-0b44672a83c505d0e073ba095e2283e60a4016ce.tar.xz plus-0b44672a83c505d0e073ba095e2283e60a4016ce.zip |
simplify drag and drop source check.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/dropshortcutcontainer.cpp | 5 |
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()); |