diff options
-rw-r--r-- | riscos/toolbar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscos/toolbar.c b/riscos/toolbar.c index 93c4438c3..34d61715f 100644 --- a/riscos/toolbar.c +++ b/riscos/toolbar.c @@ -1579,7 +1579,7 @@ bool ro_toolbar_set_button_order(struct toolbar *toolbar, char order[]) void ro_toolbar_set_button_shaded_state(struct toolbar *toolbar, button_bar_action action, bool shaded) { - if (toolbar == NULL && toolbar->buttons == NULL) + if (toolbar == NULL || toolbar->buttons == NULL) return; ro_gui_button_bar_shade_button(toolbar->buttons, action, shaded); |