From b8534818a594b6b846e37f7407e68e722a9b155b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 15 Feb 2015 20:04:28 +0300 Subject: Fix drop/store window in inventory. --- src/gui/windows/inventorywindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui/windows') diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp index 9877bd147..5b236df21 100644 --- a/src/gui/windows/inventorywindow.cpp +++ b/src/gui/windows/inventorywindow.cpp @@ -415,7 +415,7 @@ void InventoryWindow::action(const ActionEvent &event) this, item); } #ifdef EATHENA_SUPPORT - else if (cartWindow) + else if (cartWindow && cartWindow->isWindowVisible()) { ItemAmountWindow::showWindow(ItemAmountWindow::CartAdd, this, item); @@ -462,7 +462,7 @@ void InventoryWindow::action(const ActionEvent &event) InventoryType::STORAGE); } #ifdef EATHENA_SUPPORT - else if (cartWindow) + else if (cartWindow && cartWindow->isWindowVisible()) { inventoryHandler->moveItem2(InventoryType::INVENTORY, item->getInvIndex(), item->getQuantity(), @@ -499,7 +499,7 @@ void InventoryWindow::action(const ActionEvent &event) this, item); } #ifdef EATHENA_SUPPORT - else if (cartWindow) + else if (cartWindow && cartWindow->isWindowVisible()) { ItemAmountWindow::showWindow(ItemAmountWindow::CartRemove, this, item); @@ -851,7 +851,7 @@ void InventoryWindow::updateDropButton() return; #ifdef EATHENA_SUPPORT - if (isStorageActive() || cartWindow) + if (isStorageActive() || (cartWindow && cartWindow->isWindowVisible())) #else if (isStorageActive()) #endif -- cgit v1.2.3-70-g09d2