summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-11-30 19:11:31 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-11-30 19:11:31 +0100
commitd27e5a77e76ee7dfc2253aac0abb2e31fe8f6070 (patch)
tree8b87964f397b61519b228914cc9191ae0c872749
parent6f70238a32289262e73efba8c322b244ddf23cb9 (diff)
downloadserenity-d27e5a77e76ee7dfc2253aac0abb2e31fe8f6070.zip
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.
-rw-r--r--Libraries/LibGUI/GTextEditor.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/Libraries/LibGUI/GTextEditor.cpp b/Libraries/LibGUI/GTextEditor.cpp
index cce9eefdef..401b981531 100644
--- a/Libraries/LibGUI/GTextEditor.cpp
+++ b/Libraries/LibGUI/GTextEditor.cpp
@@ -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());