1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 14:48:11 +00:00

Browser: Remove no-op from the BooksmarksBarWidget

Widget::child_widgets() is a *copy* of the list of child widgets. :^)
This commit is contained in:
Andreas Kling 2020-04-23 14:10:12 +02:00
parent 7da7bbe6f9
commit 9ab9f97464

View file

@ -92,7 +92,6 @@ void BookmarksBarWidget::did_update_model()
for (auto* child : child_widgets()) { for (auto* child : child_widgets()) {
child->remove_from_parent(); child->remove_from_parent();
} }
child_widgets().clear();
m_bookmarks.clear(); m_bookmarks.clear();