summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
Diffstat (limited to 'riscos')
-rw-r--r--riscos/toolbar.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/riscos/toolbar.c b/riscos/toolbar.c
index d64db2d37..3a6c0d67b 100644
--- a/riscos/toolbar.c
+++ b/riscos/toolbar.c
@@ -1774,8 +1774,6 @@ bool ro_toolbar_get_editing(struct toolbar *toolbar)
bool ro_toolbar_toggle_edit(struct toolbar *toolbar)
{
- char *new_buttons;
-
if (toolbar == NULL || toolbar->editor == NULL)
return false;
@@ -1799,6 +1797,7 @@ bool ro_toolbar_toggle_edit(struct toolbar *toolbar)
if (!toolbar->editing && toolbar->buttons != NULL &&
toolbar->callbacks != NULL &&
toolbar->callbacks->save_buttons != NULL) {
+ char *new_buttons;
new_buttons = ro_gui_button_bar_get_config(toolbar->buttons);
toolbar->callbacks->save_buttons(toolbar->client_data,
new_buttons);