summaryrefslogtreecommitdiff
path: root/cui/source
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2016-01-21 22:27:55 +0200
committerMaxim Monastirsky <momonasmon@gmail.com>2016-01-21 22:34:41 +0200
commiteb3ee586e420ee4e38f9ef8c579e1a37d2dc0c10 (patch)
treea7754eea4c14c3adc3a1d62cf9deda62bd49bf0f /cui/source
parent9d74942d097044abbecfb9db1d515157c609289f (diff)
tdf#87178 Resetting menu shouldn't reset other resources
Change-Id: I6d6334cac9fdb5dfa3e35fe0cba70e5d9adf6fc2
Diffstat (limited to 'cui/source')
-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 cd941bebdcb4..e3d1f4dca980 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -1325,7 +1325,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;