diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-02-28 10:19:32 +0000 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2019-03-04 16:46:10 +0100 |
commit | cda1cd96d88193ef8c76dda549a237dc2fb7589b (patch) | |
tree | cde214abd16df13c736826f999b0277190e53f19 /sw | |
parent | 58ea636c615268252a9e1137ccd129770679e9db (diff) |
address list doesn't refresh on pressing 'delete'
m_nCurrentDataSet doesn't change, so it doesn't refill it, even
though m_nCurrentDataSet was deleted so it no refers to a new
entry
Change-Id: I0c68f407a23a28a7e55fb3cf691e5f07e5ed6729
Reviewed-on: https://gerrit.libreoffice.org/68498
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/dbui/createaddresslistdialog.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/ui/dbui/createaddresslistdialog.cxx b/sw/source/ui/dbui/createaddresslistdialog.cxx index c3c927f71c5b..a48d68ca1fc0 100644 --- a/sw/source/ui/dbui/createaddresslistdialog.cxx +++ b/sw/source/ui/dbui/createaddresslistdialog.cxx @@ -82,7 +82,8 @@ public: void SetData(SwCSVData& rDBData); void SetCurrentDataSet(sal_uInt32 nSet); - sal_uInt32 GetCurrentDataSet() const { return m_nCurrentDataSet;} + void CurrentDataSetInvalidated() { m_nCurrentDataSet = std::numeric_limits<sal_uInt32>::max(); } + sal_uInt32 GetCurrentDataSet() const { return m_nCurrentDataSet; } void SetCursorTo(std::size_t nElement); virtual void Resize() override; }; @@ -541,6 +542,7 @@ IMPL_LINK_NOARG(SwCreateAddressListDialog, DeleteHdl_Impl, Button*, void) m_pCSVData->aDBData[0].assign(m_pCSVData->aDBData[0].size(), OUString()); m_pDeletePB->Enable(false); } + m_pAddressControl->CurrentDataSetInvalidated(); m_pAddressControl->SetCurrentDataSet(nCurrent); m_pSetNoNF->SetMax(m_pCSVData->aDBData.size()); UpdateButtons(); |