diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-06-03 14:38:32 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-06-03 14:48:42 +0200 |
commit | c61065b262051e510ab5229a8f10efc10962137f (patch) | |
tree | a2ec9afd5c981aa75e4a7a593c736654da6ee979 | |
parent | f16d82ea8f1d2815faa978a4481c6b3c9c8705f8 (diff) |
SwAddressListDialog::LoadHdl_Impl: simplify
Change-Id: If716a706f109145c8a6b7fda4b59d2fd7b820f20
-rw-r--r-- | sw/source/ui/dbui/addresslistdialog.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sw/source/ui/dbui/addresslistdialog.cxx b/sw/source/ui/dbui/addresslistdialog.cxx index 16a55a717ef7..cda553ad2945 100644 --- a/sw/source/ui/dbui/addresslistdialog.cxx +++ b/sw/source/ui/dbui/addresslistdialog.cxx @@ -346,12 +346,7 @@ IMPL_LINK_NOARG(SwAddressListDialog, FilterHdl_Impl) IMPL_LINK_NOARG(SwAddressListDialog, LoadHdl_Impl) { - SwMailMergeWizard* pWizard = 0; - if (GetParent() && GetParent()->GetParent()) - pWizard = dynamic_cast<SwMailMergeWizard*>(GetParent()->GetParent()); - SwView* pView = 0; - if (pWizard) - pView = pWizard->GetSwView(); + SwView* pView = m_pAddressPage->GetWizard()->GetSwView(); const OUString sNewSource = SwDBManager::LoadAndRegisterDataSource(pView ? pView->GetDocShell() : 0); if(!sNewSource.isEmpty()) |