mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 18:56:29 +00:00
sculpt: sanitize keyboard-layout choice
The check handles the case when the user clicks right of the radio-button text, yielding an invalid "matching" id. This should not result in any action. Issue #5174
This commit is contained in:
parent
e1ab69491c
commit
4e78e91bc2
@ -114,7 +114,8 @@ struct Sculpt::Settings_widget : Widget<Vbox>
|
||||
[&] { _selected_section = Selected_section::NONE; },
|
||||
[&] (Clicked_at const &at) {
|
||||
Id const id = at.matching_id<Keyboard_radio>();
|
||||
action.select_keyboard_layout(id.value);
|
||||
if (id.valid())
|
||||
action.select_keyboard_layout(id.value);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user