[Libreoffice-commits] core.git: sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Feb 28 16:23:18 UTC 2019
sw/source/ui/dbui/createaddresslistdialog.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 205e2d6c31b1861111b70a704516580761a75099
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Feb 28 10:19:32 2019 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Feb 28 17:22:52 2019 +0100
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/68497
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sw/source/ui/dbui/createaddresslistdialog.cxx b/sw/source/ui/dbui/createaddresslistdialog.cxx
index a05eba96f9d8..73cb33b9b68f 100644
--- a/sw/source/ui/dbui/createaddresslistdialog.cxx
+++ b/sw/source/ui/dbui/createaddresslistdialog.cxx
@@ -84,7 +84,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;
};
@@ -543,6 +544,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();
More information about the Libreoffice-commits
mailing list