diff options
author | tagezi <lera.goncharuk@gmail.com> | 2017-12-19 13:32:26 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2017-12-20 03:28:51 +0100 |
commit | fe31edb29e5e77bb60e3aa73ec6a0380314acc61 (patch) | |
tree | a9a53debff42658753786ce0a6feb610c916b5f8 /sc/source/ui | |
parent | 6bf0a1c61ef7b0df2c5c116d6a0f05ec6565d262 (diff) |
tdf#114545 Enabling/Disabling Ok button depending on correct format
Change-Id: Iab3c4363dda0260d16c7167946044c39c21b863a
Reviewed-on: https://gerrit.libreoffice.org/46790
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins <ci@libreoffice.org>
(cherry picked from commit 7504af39686171ffb16e70f798d9ecf4ea98f1d3)
Reviewed-on: https://gerrit.libreoffice.org/46823
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'sc/source/ui')
-rw-r--r-- | sc/source/ui/condformat/condformatdlg.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/ui/condformat/condformatdlg.cxx b/sc/source/ui/condformat/condformatdlg.cxx index b7b0c40a73d8..0409efd5dda6 100644 --- a/sc/source/ui/condformat/condformatdlg.cxx +++ b/sc/source/ui/condformat/condformatdlg.cxx @@ -772,9 +772,15 @@ IMPL_LINK( ScCondFormatDlg, EdRangeModifyHdl, Edit&, rEdit, void ) ScRefFlags nFlags = aRange.Parse(aRangeStr, mpViewData->GetDocument(), mpViewData->GetDocument()->GetAddressConvention()); if(nFlags & ScRefFlags::VALID) + { rEdit.SetControlBackground(GetSettings().GetStyleSettings().GetWindowColor()); + mpBtnOk->Enable(true); + } else + { rEdit.SetControlBackground(COL_LIGHTRED); + mpBtnOk->Enable(false); + } updateTitle(); } |