summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Applications/Welcome/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/Welcome/main.cpp b/Applications/Welcome/main.cpp
index aa5aef86d0..0fa33298e6 100644
--- a/Applications/Welcome/main.cpp
+++ b/Applications/Welcome/main.cpp
@@ -139,7 +139,7 @@ int main(int argc, char** argv)
menu_option->set_text_alignment(TextAlignment::CenterLeft);
menu_option->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
menu_option->set_preferred_size(0, 20);
- menu_option->on_click = [&](auto&) {
+ menu_option->on_click = [content = content.ptr(), &stack](auto&) {
stack->set_active_widget(content);
content->invalidate_layout();
};