cui/source/customize/cfg.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
New commits: commit c36e8a3e99388485066a8321c28807ba4677114d Author: Maxim Monastirsky <momonas...@gmail.com> Date: Thu Jan 21 22:27:55 2016 +0200 tdf#87178 Resetting menu shouldn't reset other resources Change-Id: I6d6334cac9fdb5dfa3e35fe0cba70e5d9adf6fc2 (cherry picked from commit eb3ee586e420ee4e38f9ef8c579e1a37d2dc0c10) Reviewed-on: https://gerrit.libreoffice.org/21702 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx index c7d4a01..4f9c706 100644 --- a/cui/source/customize/cfg.cxx +++ b/cui/source/customize/cfg.cxx @@ -1328,7 +1328,14 @@ void SaveInData::ApplyMenu( void MenuSaveInData::Reset() { - GetConfigManager()->reset(); + try + { + GetConfigManager()->removeSettings( m_aMenuResourceURL ); + } + catch ( const css::uno::Exception& ) + {} + + PersistChanges( GetConfigManager() ); delete pRootEntry; pRootEntry = nullptr; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits