mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 17:58:18 +03:00
GTextEditor: Don't assert is_readonly() in did_change()
This callback will be invoked when calling set_text() to set the initial contents of a GTextEditor, and that's okay.
This commit is contained in:
parent
6f70238a32
commit
d27e5a77e7
Notes:
sideshowbarker
2024-07-19 11:01:05 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/d27e5a77e76
@ -1139,7 +1139,6 @@ void GTextEditor::leave_event(CEvent&)
|
||||
|
||||
void GTextEditor::did_change()
|
||||
{
|
||||
ASSERT(!is_readonly());
|
||||
update_content_size();
|
||||
recompute_all_visual_lines();
|
||||
m_undo_action->set_enabled(can_undo());
|
||||
|
Loading…
Reference in New Issue
Block a user