jsdialog: setup LOKNotifier for interaction handler errors

This allows to show error dialogs on file errors like:
"file is write protected". Without that patch it was
crashing on assertion that LOKNotifier is not set.

Change-Id: I1bc722116142c99613fa0715a49cd847896af170
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157317
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
This commit is contained in:
Szymon Kłos 2023-09-27 17:08:00 +02:00
parent f3aca194d3
commit 610dea096d

View file

@ -74,19 +74,19 @@ executeErrorDialog(
{
case task::InteractionClassification_ERROR:
xBox.reset(Application::CreateMessageDialog(pParent,
VclMessageType::Error, VclButtonsType::NONE, aText.makeStringAndClear()));
VclMessageType::Error, VclButtonsType::NONE, aText.makeStringAndClear(), GetpApp()));
break;
case task::InteractionClassification_WARNING:
xBox.reset(Application::CreateMessageDialog(pParent,
VclMessageType::Warning, VclButtonsType::NONE, aText.makeStringAndClear()));
VclMessageType::Warning, VclButtonsType::NONE, aText.makeStringAndClear(), GetpApp()));
break;
case task::InteractionClassification_INFO:
xBox.reset(Application::CreateMessageDialog(pParent,
VclMessageType::Info, VclButtonsType::NONE, aText.makeStringAndClear()));
VclMessageType::Info, VclButtonsType::NONE, aText.makeStringAndClear(), GetpApp()));
break;
case task::InteractionClassification_QUERY:
xBox.reset(Application::CreateMessageDialog(pParent,
VclMessageType::Question, VclButtonsType::NONE, aText.makeStringAndClear()));
VclMessageType::Question, VclButtonsType::NONE, aText.makeStringAndClear(), GetpApp()));
break;
default:
assert(false);