From 99bdcc0bbd6ec410958d8edf320a5ba6f1dba55a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 27 Mar 2012 16:51:24 +0300 Subject: Unselect item in inventory if it was added to outfit window. --- src/gui/outfitwindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gui/outfitwindow.cpp') diff --git a/src/gui/outfitwindow.cpp b/src/gui/outfitwindow.cpp index 009b92e73..502e9d96b 100644 --- a/src/gui/outfitwindow.cpp +++ b/src/gui/outfitwindow.cpp @@ -34,6 +34,7 @@ #include "playerinfo.h" #include "gui/chatwindow.h" +#include "gui/inventorywindow.h" #include "gui/theme.h" #include "gui/viewport.h" @@ -422,7 +423,9 @@ void OutfitWindow::mousePressed(gcn::MouseEvent &event) { mItems[mCurrentOutfit][index] = mItemSelected; mItemColors[mCurrentOutfit][index] = mItemColorSelected; -// mItemSelected = -1; + + if (inventoryWindow) + inventoryWindow->unselectItem(); } else if (mItems[mCurrentOutfit][index]) { -- cgit v1.2.3-70-g09d2