summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-01-29 18:01:13 +0100
committerMiklos Vajna <vmiklos@collabora.com>2020-01-29 18:03:47 +0100
commit64857ffa263bba786f7a4af9420a93f824837664 (patch)
treef6a1b9e3afefac01330fc71a68c6267e72d9bbf2
parent3a01e9aee46d1f53f6bee1bfa1ee257af85ea85c (diff)
desktop: document what doc_iniUnoCommands() does
Change-Id: I961e563d92c6fdb783942de4b295d5d8b1bf2db3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87701 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
-rw-r--r--desktop/source/lib/init.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index acea0d342097..90bbd6c4d797 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -2539,6 +2539,12 @@ static int doc_saveAs(LibreOfficeKitDocument* pThis, const char* sUrl, const cha
return false;
}
+/**
+ * Initialize UNO commands, in the sense that from now on, the LOK client gets updates for status
+ * changes of these commands. This is necessary, because (unlike in the desktop case) there are no
+ * toolbars hosting widgets these UNO commands, so no such status updates would be sent to the
+ * headless LOK clients out of the box.
+ */
static void doc_iniUnoCommands ()
{
SolarMutexGuard aGuard;