aboutsummaryrefslogtreecommitdiff
path: root/src/ui/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/components')
-rw-r--r--src/ui/components/Menu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/components/Menu.cpp b/src/ui/components/Menu.cpp
index c89c7fc9..a80ce92f 100644
--- a/src/ui/components/Menu.cpp
+++ b/src/ui/components/Menu.cpp
@@ -53,13 +53,13 @@ Component* Menu::RemoveItemAt(Index index) {
}
void Menu::ClearItems() {
+ container_.ClearChildren();
+
for (auto item : items_) {
item->DeleteIfDeleteByParent();
}
items_.clear();
-
- container_.ClearChildren();
}
void Menu::AddTextItemAt(std::string text, Index index,