From e26c01fe66bc698555fdee9d681b3abd6822848a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 22 Aug 2017 00:17:03 +0300 Subject: Remove some parentheses. --- src/gui/windows/inventorywindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/windows/inventorywindow.cpp') diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp index 27caa2019..cd688be9b 100644 --- a/src/gui/windows/inventorywindow.cpp +++ b/src/gui/windows/inventorywindow.cpp @@ -558,7 +558,7 @@ void InventoryWindow::mouseClicked(MouseEvent &event) const bool mod = (isStorageActive() && inputManager.isActionActive(InputAction::STOP_ATTACK)); - const bool mod2 = ((tradeWindow != nullptr) && + const bool mod2 = (tradeWindow != nullptr && tradeWindow->isWindowVisible() && inputManager.isActionActive(InputAction::STOP_ATTACK)); -- cgit v1.2.3-60-g2f50