Kaydet (Commit) c61065b2 authored tarafından Miklos Vajna's avatar Miklos Vajna

SwAddressListDialog::LoadHdl_Impl: simplify

Change-Id: If716a706f109145c8a6b7fda4b59d2fd7b820f20
üst f16d82ea
...@@ -346,12 +346,7 @@ IMPL_LINK_NOARG(SwAddressListDialog, FilterHdl_Impl) ...@@ -346,12 +346,7 @@ IMPL_LINK_NOARG(SwAddressListDialog, FilterHdl_Impl)
IMPL_LINK_NOARG(SwAddressListDialog, LoadHdl_Impl) IMPL_LINK_NOARG(SwAddressListDialog, LoadHdl_Impl)
{ {
SwMailMergeWizard* pWizard = 0; SwView* pView = m_pAddressPage->GetWizard()->GetSwView();
if (GetParent() && GetParent()->GetParent())
pWizard = dynamic_cast<SwMailMergeWizard*>(GetParent()->GetParent());
SwView* pView = 0;
if (pWizard)
pView = pWizard->GetSwView();
const OUString sNewSource = SwDBManager::LoadAndRegisterDataSource(pView ? pView->GetDocShell() : 0); const OUString sNewSource = SwDBManager::LoadAndRegisterDataSource(pView ? pView->GetDocShell() : 0);
if(!sNewSource.isEmpty()) if(!sNewSource.isEmpty())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment