Resolves: tdf#126236 reset modality back to initial modality on close

Change-Id: I959820b75a70f6090120970c9ce11787bbe25037
Reviewed-on: https://gerrit.libreoffice.org/75700
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/sw/source/ui/misc/swmodalredlineacceptdlg.cxx b/sw/source/ui/misc/swmodalredlineacceptdlg.cxx
index 931a533..762a200 100644
--- a/sw/source/ui/misc/swmodalredlineacceptdlg.cxx
+++ b/sw/source/ui/misc/swmodalredlineacceptdlg.cxx
@@ -67,6 +67,8 @@ SwModalRedlineAcceptDlg::~SwModalRedlineAcceptDlg()
    m_xImplDlg->FillInfo(sExtraData);
    SvtViewOptions aDlgOpt(EViewType::Dialog, OStringToOUString(m_xDialog->get_help_id(), RTL_TEXTENCODING_UTF8));
    aDlgOpt.SetUserItem("UserItem", css::uno::makeAny(sExtraData));

    m_xDialog->set_modal(false);
}

void SwModalRedlineAcceptDlg::Activate()