From bf30c8b16d9ac9304a49020ec2d4f744d90abe26 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 8 May 2014 14:53:29 +0200 Subject: use new VCL IsValueChangedFromSaved method follow to commit ff1a7a59434f5f793d4044aad615bcf78148e963 "RFC: add IsValueChangedFromSaved to VCL button and listbox" Change-Id: If2e6d9e7c18590dc4abbc90362d7897ca2557dd6 --- svtools/source/brwbox/ebbcontrols.cxx | 6 +++--- svtools/source/dialogs/addresstemplate.cxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'svtools') diff --git a/svtools/source/brwbox/ebbcontrols.cxx b/svtools/source/brwbox/ebbcontrols.cxx index 4b952c35f0d9..c1b865c6a27a 100644 --- a/svtools/source/brwbox/ebbcontrols.cxx +++ b/svtools/source/brwbox/ebbcontrols.cxx @@ -129,7 +129,7 @@ namespace svt bool ComboBoxCellController::IsModified() const { - return GetComboBox().GetSavedValue() != GetComboBox().GetText(); + return GetComboBox().IsValueChangedFromSaved(); } @@ -225,7 +225,7 @@ namespace svt bool ListBoxCellController::IsModified() const { - return GetListBox().GetSelectEntryPos() != GetListBox().GetSavedValue(); + return GetListBox().IsValueChangedFromSaved(); } @@ -353,7 +353,7 @@ namespace svt bool CheckBoxCellController::IsModified() const { - return GetCheckBox().GetSavedValue() != GetCheckBox().GetState(); + return GetCheckBox().IsValueChangedFromSaved(); } diff --git a/svtools/source/dialogs/addresstemplate.cxx b/svtools/source/dialogs/addresstemplate.cxx index 1524eda16c3b..b3e0883a6828 100644 --- a/svtools/source/dialogs/addresstemplate.cxx +++ b/svtools/source/dialogs/addresstemplate.cxx @@ -1130,7 +1130,7 @@ void AssignmentPersistentData::Commit() IMPL_LINK(AddressBookSourceDialog, OnComboLoseFocus, ComboBox*, _pBox) { - if (_pBox->GetSavedValue() != _pBox->GetText()) + if ( _pBox->IsValueChangedFromSaved() ) { if (_pBox == m_pDatasource) resetTables(); -- cgit