diff --git a/client/CMT.cpp b/client/CMT.cpp index 80559086e..6ae29ab22 100644 --- a/client/CMT.cpp +++ b/client/CMT.cpp @@ -502,8 +502,6 @@ void handleQuit(bool ask) return; } - CCS->curh->set(Cursor::Map::POINTER); - if (LOCPLINT) LOCPLINT->showYesNoDialog(CGI->generaltexth->allTexts[69], quitApplication, nullptr); else diff --git a/client/widgets/CArtifactsOfHeroAltar.cpp b/client/widgets/CArtifactsOfHeroAltar.cpp index 2b8dee7ba..19e79f02d 100644 --- a/client/widgets/CArtifactsOfHeroAltar.cpp +++ b/client/widgets/CArtifactsOfHeroAltar.cpp @@ -34,7 +34,8 @@ CArtifactsOfHeroAltar::CArtifactsOfHeroAltar(const Point & position) rightBackpackRoll->moveBy(Point(2, -1)); }; -CArtifactsOfHeroAltar::~CArtifactsOfHeroAltar() +void CArtifactsOfHeroAltar::deactivate() { putBackPickedArtifact(); + CArtifactsOfHeroBase::deactivate(); } diff --git a/client/widgets/CArtifactsOfHeroAltar.h b/client/widgets/CArtifactsOfHeroAltar.h index 244b09f9f..ad291dbc2 100644 --- a/client/widgets/CArtifactsOfHeroAltar.h +++ b/client/widgets/CArtifactsOfHeroAltar.h @@ -17,5 +17,5 @@ class CArtifactsOfHeroAltar : public CArtifactsOfHeroBase { public: CArtifactsOfHeroAltar(const Point & position); - ~CArtifactsOfHeroAltar(); + void deactivate() override; }; diff --git a/client/widgets/CArtifactsOfHeroKingdom.cpp b/client/widgets/CArtifactsOfHeroKingdom.cpp index 20a9cf855..c72bf8a00 100644 --- a/client/widgets/CArtifactsOfHeroKingdom.cpp +++ b/client/widgets/CArtifactsOfHeroKingdom.cpp @@ -46,7 +46,8 @@ CArtifactsOfHeroKingdom::CArtifactsOfHeroKingdom(ArtPlaceMap ArtWorn, std::vecto setRedrawParent(true); } -CArtifactsOfHeroKingdom::~CArtifactsOfHeroKingdom() +void CArtifactsOfHeroKingdom::deactivate() { putBackPickedArtifact(); + CArtifactsOfHeroBase::deactivate(); } diff --git a/client/widgets/CArtifactsOfHeroKingdom.h b/client/widgets/CArtifactsOfHeroKingdom.h index 4218fa54f..236a28ced 100644 --- a/client/widgets/CArtifactsOfHeroKingdom.h +++ b/client/widgets/CArtifactsOfHeroKingdom.h @@ -23,5 +23,6 @@ public: CArtifactsOfHeroKingdom() = delete; CArtifactsOfHeroKingdom(ArtPlaceMap ArtWorn, std::vector Backpack, std::shared_ptr leftScroll, std::shared_ptr rightScroll); - ~CArtifactsOfHeroKingdom(); + + void deactivate() override; }; diff --git a/client/widgets/CArtifactsOfHeroMain.cpp b/client/widgets/CArtifactsOfHeroMain.cpp index fbeb7db8e..80ec43f81 100644 --- a/client/widgets/CArtifactsOfHeroMain.cpp +++ b/client/widgets/CArtifactsOfHeroMain.cpp @@ -26,7 +26,8 @@ CArtifactsOfHeroMain::CArtifactsOfHeroMain(const Point & position) addGestureCallback(std::bind(&CArtifactsOfHeroBase::gestureArtPlace, this, _1, _2)); } -CArtifactsOfHeroMain::~CArtifactsOfHeroMain() +void CArtifactsOfHeroMain::deactivate() { putBackPickedArtifact(); + CArtifactsOfHeroBase::deactivate(); } diff --git a/client/widgets/CArtifactsOfHeroMain.h b/client/widgets/CArtifactsOfHeroMain.h index 6caf0d636..8e5e1e87f 100644 --- a/client/widgets/CArtifactsOfHeroMain.h +++ b/client/widgets/CArtifactsOfHeroMain.h @@ -21,5 +21,5 @@ class CArtifactsOfHeroMain : public CArtifactsOfHeroBase { public: CArtifactsOfHeroMain(const Point & position); - ~CArtifactsOfHeroMain(); + void deactivate() override; };