diff options
Diffstat (limited to 'sw/source/ui/fldui/changedb.cxx')
-rw-r--r-- | sw/source/ui/fldui/changedb.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/ui/fldui/changedb.cxx b/sw/source/ui/fldui/changedb.cxx index c76c889de239..9e917d445ff6 100644 --- a/sw/source/ui/fldui/changedb.cxx +++ b/sw/source/ui/fldui/changedb.cxx @@ -219,12 +219,11 @@ IMPL_LINK_NOARG(SwChangeDBDlg, ButtonHdl) IMPL_LINK_NOARG(SwChangeDBDlg, TreeSelectHdl) { - bool bEnable = false; - SvTreeListEntry* pEntry = m_pAvailDBTLB->GetCurEntry(); if (pEntry) { + bool bEnable = false; if (m_pAvailDBTLB->GetParent(pEntry)) bEnable = true; m_pDefineBT->Enable( bEnable ); |