diff options
author | Henry Castro <hcastro@collabora.com> | 2024-06-19 09:43:43 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2024-07-10 13:48:38 +0200 |
commit | 4645a8502559c58027b3042adc086bd2e0773b12 (patch) | |
tree | e80a38ef7f3afd62037d91a0246c0689423b592d /sc/source/ui | |
parent | a9e23d1dcd361d95e046ab2d521ee55df9a77747 (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>
(cherry picked from commit 57f781eee6eac7a10210f7b8b539b4b00c6d08e8)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170118
Tested-by: Jenkins
Diffstat (limited to 'sc/source/ui')
-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)); |