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-23 21:15:22 +0100 |
commit | f71c99d24e210da41414203adde8d2d7872920b4 (patch) | |
tree | 892384237307d497cda6096ba2e6fa5d7c8a5550 /sw | |
parent | 9100f5815aedf8bf202322d2ca6d16d7d1f68228 (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>
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 ccb4beeb9895..23435104bfc5 100644 --- a/sw/source/uibase/lingu/olmenu.cxx +++ b/sw/source/uibase/lingu/olmenu.cxx @@ -578,6 +578,8 @@ SwSpellPopup::SwSpellPopup( checkRedline(); m_xPopupMenu->RemoveDisabledEntries(true, true); + + SvtLinguConfig().SetProperty( UPN_IS_GRAMMAR_INTERACTIVE, uno::makeAny( true )); } SwSpellPopup::~SwSpellPopup() {} @@ -697,10 +699,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()-> |