diff --git a/Userland/Libraries/LibGUI/Breadcrumbbar.cpp b/Userland/Libraries/LibGUI/Breadcrumbbar.cpp index c2c7240d83..dfec0624ec 100644 --- a/Userland/Libraries/LibGUI/Breadcrumbbar.cpp +++ b/Userland/Libraries/LibGUI/Breadcrumbbar.cpp @@ -133,6 +133,8 @@ Optional Breadcrumbbar::find_segment_with_data(String const& data) void Breadcrumbbar::set_selected_segment(Optional index) { + m_selected_segment = index; + if (!index.has_value()) { for_each_child_of_type([&](auto& button) { button.set_checked(false);