wsd: don't warn incorrectly when selecting current part
Change-Id: I3c872469911b1f232e40cc110859402fc0814f3a Reviewed-on: https://gerrit.libreoffice.org/69640 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/71104
This commit is contained in:
parent
22d03720a2
commit
64c5ec5bbc
1 changed files with 9 additions and 6 deletions
|
@ -1956,14 +1956,17 @@ bool ChildSession::selectClientPart(const char* /*buffer*/, int /*length*/, cons
|
|||
|
||||
getLOKitDocument()->setView(_viewId);
|
||||
|
||||
if (getLOKitDocument()->getDocumentType() != LOK_DOCTYPE_TEXT && nPart != getLOKitDocument()->getPart())
|
||||
if (getLOKitDocument()->getDocumentType() != LOK_DOCTYPE_TEXT)
|
||||
{
|
||||
getLOKitDocument()->selectPart(nPart, nSelect);
|
||||
if (nPart != getLOKitDocument()->getPart())
|
||||
{
|
||||
getLOKitDocument()->selectPart(nPart, nSelect);
|
||||
|
||||
// Notify the client of the selection update.
|
||||
const std::string status = LOKitHelper::documentStatus(getLOKitDocument()->get());
|
||||
if (!status.empty())
|
||||
return sendTextFrame("statusupdate: " + status);
|
||||
// Notify the client of the selection update.
|
||||
const std::string status = LOKitHelper::documentStatus(getLOKitDocument()->get());
|
||||
if (!status.empty())
|
||||
return sendTextFrame("statusupdate: " + status);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue