diff options
| author | 2024-06-09 13:23:31 +0200 | |
|---|---|---|
| committer | 2024-06-09 13:23:31 +0200 | |
| commit | 23571493a3cf98d29f78cf3a73aa3c5a62e6efc4 (patch) | |
| tree | 4c92db09473bef6b72ae2fb789c750e741debe0c /src | |
| parent | Try to get a windows7 compatible build with Qt5 + vs2019 (#2650) (diff) | |
| download | KVIrc-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.cpp | 7 |
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) |
