summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay Deep <akshaydeepiitr@gmail.com>2017-08-09 16:20:57 +0530
committerAkshay Deep <akshaydeepiitr@gmail.com>2017-08-15 14:16:27 +0200
commit688624b78484bcb17c732b9c14dbb516fb6b28b4 (patch)
tree21536d166d1ca2d401f93ef3d5248b44ac5613e9
parent718cdd43c25783d9cd402e381123efe3981cc514 (diff)
tdf#109217 - State of the favorite button is not updated immediately
Change-Id: Ibc93277c71e51709d56345e8934f045c60d322ca Reviewed-on: https://gerrit.libreoffice.org/40914 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Akshay Deep <akshaydeepiitr@gmail.com>
-rw-r--r--cui/source/dialogs/cuicharmap.cxx3
1 files changed, 3 insertions, 0 deletions
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());