diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-05 16:13:19 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-03-05 21:57:42 +0100 |
commit | 9ffd28c32a301141a26e41ddd0cf485a562c83bb (patch) | |
tree | 7853d7350feb89c70019226411c58874090e0f37 /sfx2/source/dialog | |
parent | 74b5218b68469c29f93436b308e85a20140ce9dd (diff) |
use container_focus_changed instead of toplevel_focus_changed
seeing as its the same thing, but available one level of
inheritance down
Change-Id: Ieedbf2bc8cea09cdafff1514eac5c35b85c2fdd0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112023
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source/dialog')
-rw-r--r-- | sfx2/source/dialog/basedlgs.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/dialog/basedlgs.cxx b/sfx2/source/dialog/basedlgs.cxx index c777ebed9c76..fcebc6ea041c 100644 --- a/sfx2/source/dialog/basedlgs.cxx +++ b/sfx2/source/dialog/basedlgs.cxx @@ -108,7 +108,7 @@ void SfxModelessDialogController::Init(SfxBindings *pBindinx, SfxChildWindow *pC If a ModelessDialog is enabled its ViewFrame will be activated. This is necessary by PluginInFrames. */ -IMPL_LINK_NOARG(SfxDialogController, FocusChangeHdl, weld::Widget&, void) +IMPL_LINK_NOARG(SfxDialogController, FocusChangeHdl, weld::Container&, void) { if (m_xDialog->has_toplevel_focus()) Activate(); @@ -207,7 +207,7 @@ SfxDialogController::SfxDialogController(weld::Widget* pParent, const OUString& && SfxViewShell::Current()->isLOKMobilePhone()) { m_xDialog->SetInstallLOKNotifierHdl(LINK(this, SfxDialogController, InstallLOKNotifierHdl)); - m_xDialog->connect_toplevel_focus_changed(LINK(this, SfxDialogController, FocusChangeHdl)); + m_xDialog->connect_container_focus_changed(LINK(this, SfxDialogController, FocusChangeHdl)); } IMPL_STATIC_LINK_NOARG(SfxDialogController, InstallLOKNotifierHdl, void*, vcl::ILibreOfficeKitNotifier*) |