summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-05-31 20:24:11 +0300
committerAndrei Karas <akaras@inbox.ru>2011-05-31 20:24:11 +0300
commit4157793fab13e00d8176d2d4f0ffd5f9cc957fbe (patch)
tree9a5e21436a3a1cf2c0ef6c2eaac71efc9efa053f
parente5f77d32668cd1d5daa1b6deb5fe6da7eaf2f75d (diff)
downloadmanaplus-4157793fab13e00d8176d2d4f0ffd5f9cc957fbe.tar.gz
manaplus-4157793fab13e00d8176d2d4f0ffd5f9cc957fbe.tar.bz2
manaplus-4157793fab13e00d8176d2d4f0ffd5f9cc957fbe.tar.xz
manaplus-4157793fab13e00d8176d2d4f0ffd5f9cc957fbe.zip
Dont unselect outfits selection after ading item to outfits.
-rw-r--r--src/gui/outfitwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/outfitwindow.cpp b/src/gui/outfitwindow.cpp
index 6f2c35921..e322187fd 100644
--- a/src/gui/outfitwindow.cpp
+++ b/src/gui/outfitwindow.cpp
@@ -377,7 +377,7 @@ void OutfitWindow::mousePressed(gcn::MouseEvent &event)
if (isItemSelected())
{
mItems[mCurrentOutfit][index] = mItemSelected;
- mItemSelected = -1;
+// mItemSelected = -1;
}
else if (mItems[mCurrentOutfit][index])
{
@@ -390,8 +390,8 @@ void OutfitWindow::mouseReleased(gcn::MouseEvent &event)
{
if (event.getButton() == gcn::MouseEvent::LEFT)
{
- if (isItemSelected())
- mItemSelected = -1;
+// if (isItemSelected())
+// mItemSelected = -1;
const int index = getIndexFromGrid(event.getX(), event.getY());
if (index == -1)