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:
parent
f3aca194d3
commit
610dea096d
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue