mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix crash in destructor of spellchecked input field.
This commit is contained in:
parent
b94ed1fc3b
commit
d1e2fec760
1 changed files with 2 additions and 2 deletions
|
@ -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({ {
|
||||||
|
|
Loading…
Add table
Reference in a new issue