[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3-0' - kit/Kit.cpp
Jan Holesovsky
kendy at collabora.com
Wed Dec 13 13:40:26 UTC 2017
kit/Kit.cpp | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit f6447576773e10b554530b10e11d342cb43ff32d
Author: Jan Holesovsky <kendy at collabora.com>
Date: Wed Dec 13 14:28:57 2017 +0100
lokdialog: Set the language of the given view.
Change-Id: I54d542ff736b37c9b08c3e73f65d3fc27d095acc
Reviewed-on: https://gerrit.libreoffice.org/46385
Reviewed-by: pranavk <pranavk at collabora.co.uk>
Tested-by: pranavk <pranavk at collabora.co.uk>
diff --git a/kit/Kit.cpp b/kit/Kit.cpp
index 61f5f4c8..5c6eb920 100644
--- a/kit/Kit.cpp
+++ b/kit/Kit.cpp
@@ -1500,9 +1500,12 @@ private:
const int viewId = _loKitDocument->getView();
session->setViewId(viewId);
+
_sessionUserInfo[viewId] = UserInfo(session->getViewUserId(), session->getViewUserName(),
session->getViewUserExtraInfo(), session->isReadOnly());
+ _loKitDocument->setViewLanguage(viewId, lang.c_str());
+
_viewIdToCallbackDescr.emplace(viewId,
std::unique_ptr<CallbackDescriptor>(new CallbackDescriptor({ this, viewId })));
_loKitDocument->registerCallback(ViewCallback, _viewIdToCallbackDescr[viewId].get());
More information about the Libreoffice-commits
mailing list