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>
This commit is contained in:
parent
c175b00d78
commit
230a988c90
1 changed files with 1 additions and 1 deletions
|
@ -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() );
|
||||
|
|
Loading…
Reference in a new issue