diff options
author | Henry Castro <hcastro@collabora.com> | 2024-06-19 09:43:43 -0400 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2024-06-24 17:06:17 +0200 |
commit | 57f781eee6eac7a10210f7b8b539b4b00c6d08e8 (patch) | |
tree | 7bde1782f77faec3bbca64f5c15b934b0fc5c40b /sc | |
parent | bddd3bac5f81292a37bd560de735b2172d29ea7c (diff) |
lok: sc: fix warning autofilter message box
Do not send the warning dialog to other users.
Signed-off-by: Henry Castro <hcastro@collabora.com>
Change-Id: I53ce2f24a17d853a9e7e6d302e101e4fa9d556dd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169205
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/dbfunc.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
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<weld::MessageDialog> 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)); |