lokdialog: Set the language of the given view.
Change-Id: I54d542ff736b37c9b08c3e73f65d3fc27d095acc Reviewed-on: https://gerrit.libreoffice.org/46385 Reviewed-by: pranavk <pranavk@collabora.co.uk> Tested-by: pranavk <pranavk@collabora.co.uk>
This commit is contained in:
parent
d96cb94d02
commit
525284e32d
1 changed files with 3 additions and 0 deletions
|
@ -1512,9 +1512,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());
|
||||
|
|
Loading…
Reference in a new issue