summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2022-06-16 13:24:24 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2022-06-17 14:00:14 +0200
commit230a988c9011ffc365070acf9ecd750825b0b1ec (patch)
tree4a38850d4d561bc8996131f007cbb69a8caf232e /framework
parentc175b00d784a1e702ac6e757c78322dfb4175309 (diff)
tdf#125040 Ignore the default context
This isn't a meaningful context, but a way to represent a lack of context. Typically it's a temporary state, followed by a proper context being set. The problem becomes apparent when a context deactivation is caused by switching to another document window, as the further activation will happen only when the former window is focused again. This makes the contextual controls disappear in the meantime. Change-Id: I96c8356acb2434c579dc74407043b55eb5374a0f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136010 Tested-by: Jenkins Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/source/uielement/toolbarwrapper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/source/uielement/toolbarwrapper.cxx b/framework/source/uielement/toolbarwrapper.cxx
index 9acbe7ca7b55..8f3937ef094f 100644
--- a/framework/source/uielement/toolbarwrapper.cxx
+++ b/framework/source/uielement/toolbarwrapper.cxx
@@ -269,7 +269,7 @@ void SAL_CALL ToolBarWrapper::notifyContextChangeEvent( const ContextChangeEvent
if ( m_bDisposed )
throw DisposedException();
- if ( aEvent.ContextName.isEmpty() )
+ if ( aEvent.ContextName.isEmpty() || aEvent.ContextName == "default" )
return;
const OUString aContextToolbar( m_aResourceURL + "-" + aEvent.ContextName.toAsciiLowerCase() );