diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2019-11-16 13:30:30 +0100 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2019-11-26 18:40:27 +0100 |
commit | 7accd387e188e5ef989d86a97d2bd97f68a64dbe (patch) | |
tree | 1791734bf5ec581c6d65f97f0393a39a86dab72d /sw | |
parent | 05b92c6b548219e563695bd967d23b45439b8e32 (diff) |
SpellingPopup: Move setting UPN_IS_GRAMMAR_INTERACTIVE to the constructor.
Change-Id: Ief5470e0a61f0ca40549ab6d3768c795c3f04510
Reviewed-on: https://gerrit.libreoffice.org/83580
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
(cherry picked from commit f71c99d24e210da41414203adde8d2d7872920b4)
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/lingu/olmenu.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/uibase/lingu/olmenu.cxx b/sw/source/uibase/lingu/olmenu.cxx index f102c1d30601..9d1d42135357 100644 --- a/sw/source/uibase/lingu/olmenu.cxx +++ b/sw/source/uibase/lingu/olmenu.cxx @@ -583,6 +583,8 @@ SwSpellPopup::SwSpellPopup( checkRedline(); m_xPopupMenu->RemoveDisabledEntries(true, true); + + SvtLinguConfig().SetProperty( UPN_IS_GRAMMAR_INTERACTIVE, uno::makeAny( true )); } SwSpellPopup::~SwSpellPopup() {} @@ -703,10 +705,6 @@ void SwSpellPopup::Execute( sal_uInt16 nId ) } else if (nId == m_nSpellDialogId) { - if (m_bGrammarResults) - { - SvtLinguConfig().SetProperty( UPN_IS_GRAMMAR_INTERACTIVE, uno::makeAny( true )); - } m_pSh->Left(CRSR_SKIP_CHARS, false, 1, false ); { m_pSh->GetView().GetViewFrame()->GetDispatcher()-> |