diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-07-01 23:18:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-07-02 23:50:33 +0300 |
commit | 1cafda1147c06a647e3d3f1e3f986d7296ccbd08 (patch) | |
tree | 920e60dbd1feb3657edc130aa6a4ba4af562454a /src/gui/outfitwindow.cpp | |
parent | b210f1b896039b4909ca5fb7abea8b437896a77a (diff) | |
download | manaverse-1cafda1147c06a647e3d3f1e3f986d7296ccbd08.tar.gz manaverse-1cafda1147c06a647e3d3f1e3f986d7296ccbd08.tar.bz2 manaverse-1cafda1147c06a647e3d3f1e3f986d7296ccbd08.tar.xz manaverse-1cafda1147c06a647e3d3f1e3f986d7296ccbd08.zip |
add support for drag and drop in spells window.
Diffstat (limited to 'src/gui/outfitwindow.cpp')
-rw-r--r-- | src/gui/outfitwindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/outfitwindow.cpp b/src/gui/outfitwindow.cpp index 132419c91..d14abd701 100644 --- a/src/gui/outfitwindow.cpp +++ b/src/gui/outfitwindow.cpp @@ -471,7 +471,8 @@ void OutfitWindow::mouseReleased(gcn::MouseEvent &event) } mMoved = false; event.consume(); - if (!dragDrop.isEmpty()) + if (!dragDrop.isEmpty() && dragDrop.getSource() + == DRAGDROP_SOURCE_INVENTORY) { mItems[mCurrentOutfit][index] = dragDrop.getItem(); mItemColors[mCurrentOutfit][index] = dragDrop.getItemColor(); |