mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Fix crash in destructor of spellchecked input field.
This commit is contained in:
@@ -278,8 +278,8 @@ void InitSpellchecker(
|
||||
not_null<Main::Session*> session,
|
||||
not_null<Ui::InputField*> field) {
|
||||
#ifndef TDESKTOP_DISABLE_SPELLCHECK
|
||||
const auto s = field->lifetime().make_state<Spellchecker::SpellingHighlighter>(
|
||||
field->rawTextEdit(),
|
||||
const auto s = Ui::CreateChild<Spellchecker::SpellingHighlighter>(
|
||||
field->rawTextEdit().get(),
|
||||
session->settings().spellcheckerEnabledValue(),
|
||||
field->documentContentsChanges());
|
||||
Spellchecker::SetPhrases({ {
|
||||
|
Reference in New Issue
Block a user