[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - cui/source

Maxim Monastirsky momonasmon at gmail.com
Fri Jan 22 05:24:39 PST 2016


 cui/source/customize/cfg.cxx |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

New commits:
commit c36e8a3e99388485066a8321c28807ba4677114d
Author: Maxim Monastirsky <momonasmon at 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 <ci at libreoffice.org>
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at 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;


More information about the Libreoffice-commits mailing list