kit: take ownership when saving a document template

Otherwise, it causes error log:
ERR  Cannot save docKey [/filename], the .uno:Save has failed in LOK.

Change-Id: Ic99807848def72f76471c4f999ebeed9a7c0a2c8
This commit is contained in:
Henry Castro 2019-05-27 12:07:00 -04:00 committed by Jan Holesovsky
parent 635f0627f2
commit 393db38ce2

View file

@ -569,7 +569,7 @@ bool ChildSession::loadDocument(const char * /*buffer*/, int /*length*/, const s
if (!doctemplate.empty())
{
std::string url = getJailedFilePath();
bool success = getLOKitDocument()->saveAs(url.c_str(), nullptr, nullptr);
bool success = getLOKitDocument()->saveAs(url.c_str(), nullptr, "TakeOwnership");
if (!success)
{
LOG_ERR("Failed to save template [" << getJailedFilePath() << "].");