mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 14:14:45 +03:00
TextEditor: Don't attempt to stop the autocomplete timer if it is null
Closes #5567
This commit is contained in:
parent
953f4f7e60
commit
c1c37cc5bd
Notes:
sideshowbarker
2024-07-18 21:44:04 +09:00
Author: https://github.com/itamar8910 Commit: https://github.com/SerenityOS/serenity/commit/c1c37cc5bd4 Pull-request: https://github.com/SerenityOS/serenity/pull/5631 Issue: https://github.com/SerenityOS/serenity/issues/5567
@ -1317,8 +1317,9 @@ void TextEditor::did_change()
|
||||
m_undo_action->set_enabled(can_undo());
|
||||
m_redo_action->set_enabled(can_redo());
|
||||
if (m_autocomplete_box && !m_should_keep_autocomplete_box) {
|
||||
m_autocomplete_timer->stop();
|
||||
m_autocomplete_box->close();
|
||||
if (m_autocomplete_timer)
|
||||
m_autocomplete_timer->stop();
|
||||
}
|
||||
if (!m_has_pending_change_notification) {
|
||||
m_has_pending_change_notification = true;
|
||||
|
Loading…
Reference in New Issue
Block a user