From ab7ad10796d102ba6320d9ccdc11d25fba0bddfa Mon Sep 17 00:00:00 2001 From: Nimetu Date: Fri, 1 Mar 2019 00:22:43 +0200 Subject: [PATCH] Fixed: Save landmarks immediately on change --HG-- branch : develop --- code/ryzom/client/src/interface_v3/group_map.cpp | 3 +++ code/ryzom/client/src/interface_v3/interface_manager.cpp | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/code/ryzom/client/src/interface_v3/group_map.cpp b/code/ryzom/client/src/interface_v3/group_map.cpp index 28eb5e1e3..e9864b61b 100644 --- a/code/ryzom/client/src/interface_v3/group_map.cpp +++ b/code/ryzom/client/src/interface_v3/group_map.cpp @@ -2739,6 +2739,7 @@ void CGroupMap::removeUserLandMark(CCtrlButton *button) updateUserLandMarks(); } + CInterfaceManager::getInstance()->saveLandmarks(); return; } } @@ -2758,6 +2759,8 @@ void CGroupMap::updateUserLandMark(CCtrlButton *button, const ucstring &newTitle updateLandMarkButton(_UserLM[k], getUserLandMarkOptions(k)); button->setDefaultContextHelp(newTitle); + + CInterfaceManager::getInstance()->saveLandmarks(); return; } } diff --git a/code/ryzom/client/src/interface_v3/interface_manager.cpp b/code/ryzom/client/src/interface_v3/interface_manager.cpp index bc606f939..80c6c552b 100644 --- a/code/ryzom/client/src/interface_v3/interface_manager.cpp +++ b/code/ryzom/client/src/interface_v3/interface_manager.cpp @@ -3096,7 +3096,6 @@ class CAHSaveUI : public IActionHandler { CInterfaceManager::getInstance()->saveKeys(true); CInterfaceManager::getInstance()->saveConfig(true); - CInterfaceManager::getInstance()->saveLandmarks(true); } }; REGISTER_ACTION_HANDLER (CAHSaveUI, "save_ui");