mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +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<Main::Session*> session,
|
||||||
not_null<Ui::InputField*> field) {
|
not_null<Ui::InputField*> field) {
|
||||||
#ifndef TDESKTOP_DISABLE_SPELLCHECK
|
#ifndef TDESKTOP_DISABLE_SPELLCHECK
|
||||||
const auto s = field->lifetime().make_state<Spellchecker::SpellingHighlighter>(
|
const auto s = Ui::CreateChild<Spellchecker::SpellingHighlighter>(
|
||||||
field->rawTextEdit(),
|
field->rawTextEdit().get(),
|
||||||
session->settings().spellcheckerEnabledValue(),
|
session->settings().spellcheckerEnabledValue(),
|
||||||
field->documentContentsChanges());
|
field->documentContentsChanges());
|
||||||
Spellchecker::SetPhrases({ {
|
Spellchecker::SetPhrases({ {
|
||||||
|
Reference in New Issue
Block a user