From 688624b78484bcb17c732b9c14dbb516fb6b28b4 Mon Sep 17 00:00:00 2001 From: Akshay Deep Date: Wed, 9 Aug 2017 16:20:57 +0530 Subject: tdf#109217 - State of the favorite button is not updated immediately Change-Id: Ibc93277c71e51709d56345e8934f045c60d322ca Reviewed-on: https://gerrit.libreoffice.org/40914 Tested-by: Jenkins Reviewed-by: Akshay Deep --- cui/source/dialogs/cuicharmap.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cui') diff --git a/cui/source/dialogs/cuicharmap.cxx b/cui/source/dialogs/cuicharmap.cxx index 9ae777a7affe..d148676dc645 100644 --- a/cui/source/dialogs/cuicharmap.cxx +++ b/cui/source/dialogs/cuicharmap.cxx @@ -941,7 +941,10 @@ IMPL_STATIC_LINK(SvxCharacterMap, LoseFocusHdl, Control&, pItem, void) IMPL_LINK_NOARG(SvxCharacterMap, FavSelectHdl, Button*, void) { if(m_pFavouritesBtn->GetText().match(CuiResId(RID_SVXSTR_ADD_FAVORITES))) + { updateFavCharacterList(m_pShowChar->GetText(), m_pShowChar->GetFont().GetFamilyName()); + setFavButtonState(m_pShowChar->GetText(), m_pShowChar->GetFont().GetFamilyName()); + } else { deleteFavCharacterFromList(m_pShowChar->GetText(), m_pShowChar->GetFont().GetFamilyName()); -- cgit