summaryrefslogtreecommitdiff
path: root/desktop/source
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2024-10-17 16:46:51 +0200
committerAndras Timar <andras.timar@collabora.com>2024-10-31 08:30:11 +0100
commit774275231294b8b8f41024cb1d5216bbe3f23aba (patch)
treebeb77f376ac1a01b06905d67235514034fd7541e /desktop/source
parent0e05add86cfb996fe6a11c088c36b3fa010e2445 (diff)
Prevent 'Failed to dispatch .uno:None' message
This was seen when checking grammar checker suggestion. When I click on the top element of the context menu of underlined text (e.g. Grammar error), I get warn:lok:1663798:1663791:desktop/source/lib/init.cxx:283: lok exception 'Failed to dispatch .uno:None' This .uno:None was introduced by Tamas Zolnai especially for LOK: 3616bb68f247735c46c1a4cd9568775e77be6441 His intention was to add an empty command that does nothing. Change-Id: I12a9a1e17dcf65cdd78266f44e6201ed3d5fa01f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175102 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com> (cherry picked from commit bdb0dd485da24a95b61df6136362ab189803bc27) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175845 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'desktop/source')
-rw-r--r--desktop/source/lib/init.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 4bd1beda9abc..1e667eeb76b0 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -5346,6 +5346,9 @@ static void doc_postUnoCommand(LibreOfficeKitDocument* pThis, const char* pComma
if (!isCommandAllowed(aCommand))
return;
+ if (gImpl && aCommand == ".uno:None")
+ return;
+
LibLODocument_Impl* pDocument = static_cast<LibLODocument_Impl*>(pThis);
std::vector<beans::PropertyValue> aPropertyValuesVector(jsonToPropertyValuesVector(pArguments));