diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2016-01-21 22:27:55 +0200 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2016-01-21 22:34:41 +0200 |
commit | eb3ee586e420ee4e38f9ef8c579e1a37d2dc0c10 (patch) | |
tree | a7754eea4c14c3adc3a1d62cf9deda62bd49bf0f /cui | |
parent | 9d74942d097044abbecfb9db1d515157c609289f (diff) |
tdf#87178 Resetting menu shouldn't reset other resources
Change-Id: I6d6334cac9fdb5dfa3e35fe0cba70e5d9adf6fc2
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/customize/cfg.cxx | 9 |
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; |