Browse Source

fix popup

Laserlicht 11 months ago
parent
commit
b89db3f044
1 changed files with 3 additions and 0 deletions
  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;