diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-03-21 17:32:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-03-21 18:51:45 +0300 |
commit | 3ed0b5f6edce152fa2eca9c84d64cbeec8ac0173 (patch) | |
tree | 8791e88608a737b0cb56997743a1404f982eecc8 /src/gui/windows/equipmentwindow.cpp | |
parent | 1dd71a1f8489b35d1c989fb0477122224d981853 (diff) | |
download | mv-3ed0b5f6edce152fa2eca9c84d64cbeec8ac0173.tar.gz mv-3ed0b5f6edce152fa2eca9c84d64cbeec8ac0173.tar.bz2 mv-3ed0b5f6edce152fa2eca9c84d64cbeec8ac0173.tar.xz mv-3ed0b5f6edce152fa2eca9c84d64cbeec8ac0173.zip |
Add consume calls into mouse press / click handlers.
Diffstat (limited to 'src/gui/windows/equipmentwindow.cpp')
-rw-r--r-- | src/gui/windows/equipmentwindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/windows/equipmentwindow.cpp b/src/gui/windows/equipmentwindow.cpp index 3799015e5..b8b693fc1 100644 --- a/src/gui/windows/equipmentwindow.cpp +++ b/src/gui/windows/equipmentwindow.cpp @@ -332,6 +332,7 @@ void EquipmentWindow::mousePressed(MouseEvent& mouseEvent) inBox = true; if (item) { + mouseEvent.consume(); setSelected(i); dragDrop.dragItem(item, DRAGDROP_SOURCE_EQUIPMENT); return; @@ -355,6 +356,7 @@ void EquipmentWindow::mousePressed(MouseEvent& mouseEvent) const int my = y + getY(); if (viewport) { + mouseEvent.consume(); if (mForing) viewport->showUndressPopup(mx, my, mBeing, item); else |