Browse Source

fix popup

Laserlicht 11 tháng trước cách đây
mục cha
commit
b89db3f044
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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())
 	if (!settings["input"]["radialWheelGarrisonSwipe"].Bool())
 		return;
 		return;
 
 
+	if(GH.windows().topWindow<CIntObject>()->isPopupWindow())
+		return;
+
 	const auto * otherArmy = upg == EGarrisonType::UPPER ? owner->lowerArmy() : owner->upperArmy();
 	const auto * otherArmy = upg == EGarrisonType::UPPER ? owner->lowerArmy() : owner->upperArmy();
 
 
 	bool stackExists = myStack != nullptr;
 	bool stackExists = myStack != nullptr;