summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/view/dbfunc.cxx7
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));