Bladeren bron

Fix cursor visibility on closing popup

Ivan Savenko 2 jaren geleden
bovenliggende
commit
82288996a2
1 gewijzigde bestanden met toevoegingen van 5 en 1 verwijderingen
  1. 5 1
      client/windows/CWindowObject.cpp

+ 5 - 1
client/windows/CWindowObject.cpp

@@ -75,7 +75,11 @@ CWindowObject::CWindowObject(int options_, std::string imageName):
 		setShadow(true);
 }
 
-CWindowObject::~CWindowObject() = default;
+CWindowObject::~CWindowObject()
+{
+	if(options & RCLICK_POPUP)
+		CCS->curh->show();
+}
 
 std::shared_ptr<CPicture> CWindowObject::createBg(std::string imageName, bool playerColored)
 {