Ver código fonte

Merge pull request #4955 from Laserlicht/popup_fix

fix tavern popup
Ivan Savenko 11 meses atrás
pai
commit
d94da01535
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      client/widgets/CGarrisonInt.cpp

+ 3 - 0
client/widgets/CGarrisonInt.cpp

@@ -370,6 +370,9 @@ void CGarrisonSlot::gesture(bool on, const Point & initialPosition, const Point
 	if (!settings["input"]["radialWheelGarrisonSwipe"].Bool())
 		return;
 
+	if(GH.windows().topWindow<CIntObject>()->isPopupWindow())
+		return;
+
 	const auto * otherArmy = upg == EGarrisonType::UPPER ? owner->lowerArmy() : owner->upperArmy();
 
 	bool stackExists = myStack != nullptr;