浏览代码

fix popup

Laserlicht 11 月之前
父节点
当前提交
b89db3f044
共有 1 个文件被更改,包括 3 次插入0 次删除
  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;