summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2016-01-21 22:27:55 +0200
committerCaolán McNamara <caolanm@redhat.com>2016-02-18 09:31:30 +0000
commiteb0aad9186953e0602ed96244492a71f203d8f94 (patch)
treeadeac733d784b70fc9324dd2fbd5c89d2c411407 /cui
parentb21bb8d7b3808eee06320b634e11e3a4ab217839 (diff)
tdf#87178 Resetting menu shouldn't reset other resources
Change-Id: I6d6334cac9fdb5dfa3e35fe0cba70e5d9adf6fc2 (cherry picked from commit eb3ee586e420ee4e38f9ef8c579e1a37d2dc0c10) Reviewed-on: https://gerrit.libreoffice.org/21703 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/cfg.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index e4da216faa49..92827b86d08d 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -1302,7 +1302,14 @@ void MenuSaveInData::ApplyMenu(
void
MenuSaveInData::Reset()
{
- GetConfigManager()->reset();
+ try
+ {
+ GetConfigManager()->removeSettings( m_aMenuResourceURL );
+ }
+ catch ( const css::uno::Exception& )
+ {}
+
+ PersistChanges( GetConfigManager() );
delete pRootEntry;
pRootEntry = NULL;