aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar ctrlaltca2024-06-09 13:23:31 +0200
committerGravatar GitHub2024-06-09 13:23:31 +0200
commit23571493a3cf98d29f78cf3a73aa3c5a62e6efc4 (patch)
tree4c92db09473bef6b72ae2fb789c750e741debe0c /src
parentTry to get a windows7 compatible build with Qt5 + vs2019 (#2650) (diff)
downloadKVIrc-23571493a3cf98d29f78cf3a73aa3c5a62e6efc4.tar.gz
KVIrc-23571493a3cf98d29f78cf3a73aa3c5a62e6efc4.tar.bz2
KVIrc-23571493a3cf98d29f78cf3a73aa3c5a62e6efc4.zip
Never cleanup (unload) the spellchecker module since reloading it could lead to a crash; fix #2645 (#2649)
Diffstat (limited to 'src')
-rw-r--r--src/modules/spellchecker/libkvispellchecker.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modules/spellchecker/libkvispellchecker.cpp b/src/modules/spellchecker/libkvispellchecker.cpp
index 7cc4a02fd..fa76521b4 100644
--- a/src/modules/spellchecker/libkvispellchecker.cpp
+++ b/src/modules/spellchecker/libkvispellchecker.cpp
@@ -215,13 +215,18 @@ static bool spellchecker_module_cleanup(KviModule *)
return true;
}
+static bool spellchecker_module_can_unload(KviModule *)
+{
+ return false;
+}
+
KVIRC_MODULE(
"SpellChecker", // module name
"4.0.0", // module version
"Copyright (C) 2014 Alexey Sokolov (sokolov at google dot com)", // author & (C)
"Spell checker",
spellchecker_module_init,
- 0,
+ spellchecker_module_can_unload,
0,
spellchecker_module_cleanup,
0)