From 57f781eee6eac7a10210f7b8b539b4b00c6d08e8 Mon Sep 17 00:00:00 2001 From: Henry Castro Date: Wed, 19 Jun 2024 09:43:43 -0400 Subject: lok: sc: fix warning autofilter message box MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Do not send the warning dialog to other users. Signed-off-by: Henry Castro Change-Id: I53ce2f24a17d853a9e7e6d302e101e4fa9d556dd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169205 Tested-by: Jenkins CollaboraOffice Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sc/source/ui/view/dbfunc.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sc') diff --git a/sc/source/ui/view/dbfunc.cxx b/sc/source/ui/view/dbfunc.cxx index 8f1b9e8fc589..fe68d386195c 100644 --- a/sc/source/ui/view/dbfunc.cxx +++ b/sc/source/ui/view/dbfunc.cxx @@ -344,8 +344,11 @@ void ScDBFunc::ToggleAutoFilter() if (!bHeader) { std::shared_ptr xBox(Application::CreateMessageDialog(pViewData->GetDialogParent(), - VclMessageType::Question, - VclButtonsType::YesNo, ScResId(STR_MSSG_MAKEAUTOFILTER_0))); // header from first row? + VclMessageType::Question, + VclButtonsType::YesNo, + // header from first row? + ScResId(STR_MSSG_MAKEAUTOFILTER_0), + SfxViewShell::Current())); xBox->set_title(ScResId(STR_MSSG_DOSUBTOTALS_0)); // "StarCalc" xBox->set_default_response(RET_YES); xBox->SetInstallLOKNotifierHdl(LINK(this, ScDBFunc, InstallLOKNotifierHdl)); -- cgit