kit/ChildSession.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-)
New commits: commit 3b931560b945c25bb820ba0b24dab7d229f3336b Author: Ashod Nakashian <ashod.nakash...@collabora.co.uk> AuthorDate: Sun Jan 20 16:44:28 2019 -0500 Commit: Ashod Nakashian <ashnak...@gmail.com> CommitDate: Mon Apr 15 05:03:58 2019 +0200 wsd: don't warn incorrectly when selecting current part Change-Id: I3c872469911b1f232e40cc110859402fc0814f3a Reviewed-on: https://gerrit.libreoffice.org/69640 Reviewed-by: Ashod Nakashian <ashnak...@gmail.com> Tested-by: Ashod Nakashian <ashnak...@gmail.com> diff --git a/kit/ChildSession.cpp b/kit/ChildSession.cpp index 1e3e00413..91398619a 100644 --- a/kit/ChildSession.cpp +++ b/kit/ChildSession.cpp @@ -1844,14 +1844,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 { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits