aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);