loolwsd: Calc: core and client could be on 2 different tabs
The check for the current part was done before set view on core to the one of the sender message Change-Id: If4b9264c981ecc4e858d23366045e42be603c7c4
This commit is contained in:
parent
97fa8e45f9
commit
5edb4cb8c4
1 changed files with 2 additions and 2 deletions
|
@ -895,10 +895,10 @@ bool ChildSession::setClientPart(const char* /*buffer*/, int /*length*/, StringT
|
|||
|
||||
auto lock(_loKitDocument->getLock());
|
||||
|
||||
_loKitDocument->setView(_viewId);
|
||||
|
||||
if (part != _loKitDocument->getPart())
|
||||
{
|
||||
_loKitDocument->setView(_viewId);
|
||||
|
||||
_loKitDocument->setPart(part);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue