summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-06-21 14:14:44 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-06-21 17:17:28 +0200
commitce5a418abe7fbb08beaaa06ae9caeea0a0053305 (patch)
tree71fb1fed411b56e257a366f27068a9e094aad6ef /basctl
parent17ae6c31743db72d96c5addb9abf00a7842bc433 (diff)
search dialog is welded
Change-Id: I51fa749266efed733aeff9d2e22d7d5f628468c1 Reviewed-on: https://gerrit.libreoffice.org/74510 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/basides1.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basctl/source/basicide/basides1.cxx b/basctl/source/basicide/basides1.cxx
index c04f0c346893..9a6c1d91cbc0 100644
--- a/basctl/source/basicide/basides1.cxx
+++ b/basctl/source/basicide/basides1.cxx
@@ -173,9 +173,9 @@ void Shell::ExecuteSearch( SfxRequest& rReq )
{
SfxViewFrame* pViewFrame = GetViewFrame();
SfxChildWindow* pChildWin = pViewFrame ? pViewFrame->GetChildWindow( SID_SEARCH_DLG ) : nullptr;
- vcl::Window* pParent = pChildWin ? pChildWin->GetWindow() : nullptr;
+ auto xParent = pChildWin ? pChildWin->GetController() : nullptr;
- std::unique_ptr<weld::MessageDialog> xQueryBox(Application::CreateMessageDialog(pParent ? pParent->GetFrameWeld() : nullptr,
+ std::unique_ptr<weld::MessageDialog> xQueryBox(Application::CreateMessageDialog(xParent ? xParent->getDialog() : nullptr,
VclMessageType::Question, VclButtonsType::YesNo,
IDEResId(RID_STR_SEARCHFROMSTART)));
xQueryBox->set_default_response(RET_YES);