diff options
Diffstat (limited to 'sc/source/ui/view/dbfunc3.cxx')
-rw-r--r-- | sc/source/ui/view/dbfunc3.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/view/dbfunc3.cxx b/sc/source/ui/view/dbfunc3.cxx index 40bd881535f0..7a7946be7b32 100644 --- a/sc/source/ui/view/dbfunc3.cxx +++ b/sc/source/ui/view/dbfunc3.cxx @@ -418,14 +418,13 @@ void ScDBFunc::DoSubTotals( const ScSubTotalParam& rParam, bool bRecord, return; } - WaitObject aWait( GetViewData().GetDialogParent() ); + weld::WaitObject aWait(GetViewData().GetFrameWeld()); bool bOk = true; if (rParam.bReplace) { if (rDoc.TestRemoveSubTotals( nTab, rParam )) { - vcl::Window* pWin = GetViewData().GetDialogParent(); - std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(pWin ? pWin->GetFrameWeld() : nullptr, + std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(GetViewData().GetFrameWeld(), VclMessageType::Question, VclButtonsType::YesNo, ScResId(STR_MSSG_DOSUBTOTALS_1))); // "delete data?" xBox->set_title(ScResId(STR_MSSG_DOSUBTOTALS_0)); // "StarCalc" |