Переглянути джерело

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.
Andreas Kling 5 роки тому
батько
коміт
d27e5a77e7
1 змінених файлів з 0 додано та 1 видалено
  1. 0 1
      Libraries/LibGUI/GTextEditor.cpp

+ 0 - 1
Libraries/LibGUI/GTextEditor.cpp

@@ -1139,7 +1139,6 @@ void GTextEditor::leave_event(CEvent&)
 
 
 void GTextEditor::did_change()
 void GTextEditor::did_change()
 {
 {
-    ASSERT(!is_readonly());
     update_content_size();
     update_content_size();
     recompute_all_visual_lines();
     recompute_all_visual_lines();
     m_undo_action->set_enabled(can_undo());
     m_undo_action->set_enabled(can_undo());