aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar keshavbhatt <keshavnrj@gmail.com>2021-04-11 02:53:08 +0530
committerLibravatar keshavbhatt <keshavnrj@gmail.com>2021-04-11 02:53:08 +0530
commit2e669a132570581c33b9de09dfc67a52fca06885 (patch)
tree03f2c48933d501d39b7b4190d5a77c8ea653c11e
parent761548792a525b30b4e3f85f8cdc675ae4db06cb (diff)
downloadwhatsie-2e669a132570581c33b9de09dfc67a52fca06885.tar.gz
whatsie-2e669a132570581c33b9de09dfc67a52fca06885.zip
update spell checker settings in settings
-rw-r--r--src/webview.cpp3
1 files changed, 2 insertions, 1 deletions
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);