diff --git a/code/ryzom/client/src/interface_v3/group_map.cpp b/code/ryzom/client/src/interface_v3/group_map.cpp index a5d0c4470..2dea63983 100644 --- a/code/ryzom/client/src/interface_v3/group_map.cpp +++ b/code/ryzom/client/src/interface_v3/group_map.cpp @@ -3926,9 +3926,9 @@ REGISTER_ACTION_HANDLER(CAHLandMarkSelected, "land_mark_selected"); // Remove a user landmark class CAHRemoveUserLandMark : public IActionHandler { - virtual void execute (CCtrlBase *pCaller, const string &/* params */) + virtual void execute (CCtrlBase * /* pCaller */, const string &/* params */) { - CCtrlButton *button = dynamic_cast(pCaller); + CCtrlButton *button = dynamic_cast(CWidgetManager::getInstance()->getCtrlLaunchingModal()); if (!button) return; CGroupMap *map = dynamic_cast(button->getParent()); if (!map) return; @@ -3936,6 +3936,8 @@ class CAHRemoveUserLandMark : public IActionHandler // close the rename window & create window closeLandMarkNameDialog(); LastSelectedLandMark = NULL; + // close confirmation + CAHManager::getInstance()->runActionHandler("leave_modal", NULL); } }; REGISTER_ACTION_HANDLER(CAHRemoveUserLandMark, "remove_user_landmark");