From 2e669a132570581c33b9de09dfc67a52fca06885 Mon Sep 17 00:00:00 2001 From: keshavbhatt Date: Sun, 11 Apr 2021 02:53:08 +0530 Subject: update spell checker settings in settings --- src/webview.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/webview.cpp b/src/webview.cpp index 653dbae..99509f0 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -73,8 +73,9 @@ void WebView::contextMenuEvent(QContextMenuEvent *event) QAction *spellcheckAction = new QAction(tr("Check Spelling"), nullptr); spellcheckAction->setCheckable(true); spellcheckAction->setChecked(profile->isSpellCheckEnabled()); - connect(spellcheckAction, &QAction::toggled, this, [profile](bool toogled) { + connect(spellcheckAction, &QAction::toggled, this, [profile,this](bool toogled) { profile->setSpellCheckEnabled(toogled); + settings.setValue("sc_enabled",toogled); }); menu->addAction(spellcheckAction); -- cgit v1.2.3