Kaydet (Commit) 645ec0a7 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

lok: Only add interaction handler when LOK fully initialized.

Necessary for unit testing.

Change-Id: I8db8b4c469864a915a00f8d8c4932634d74f11a7
üst a121074c
......@@ -1128,7 +1128,7 @@ static void doc_postUnoCommand(LibreOfficeKitDocument* pThis, const char* pComma
std::vector<beans::PropertyValue> aPropertyValuesVector(jsonToPropertyValuesVector(pArguments));
// handle potential interaction
if (aCommand == ".uno:Save")
if (gImpl && aCommand == ".uno:Save")
{
rtl::Reference<LOKInteractionHandler> const pInteraction(
new LOKInteractionHandler(::comphelper::getProcessComponentContext(), "save", gImpl, pDocument));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment