summaryrefslogtreecommitdiff
path: root/frontends/riscos
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/riscos')
-rw-r--r--frontends/riscos/hotlist.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/frontends/riscos/hotlist.c b/frontends/riscos/hotlist.c
index ae27bf55d..15c5f5488 100644
--- a/frontends/riscos/hotlist.c
+++ b/frontends/riscos/hotlist.c
@@ -552,25 +552,24 @@ nserror ro_gui_hotlist_present(void)
error->errmess);
}
- LOG("Presenting hotlist");
- ro_gui_dialog_open_top(hotlist_window->core.wh,
- hotlist_window->core.toolbar,
- 600, 800);
+ res = ro_hotlist_init();
+ if (res == NSERROR_OK) {
+ LOG("Presenting");
+ ro_gui_dialog_open_top(hotlist_window->core.wh,
+ hotlist_window->core.toolbar,
+ 600, 800);
+ } else {
+ LOG("Failed presenting code %d", res);
+ }
- return NSERROR_OK;
+ return res;
}
/* exported interface documented in riscos/hotlist.h */
void ro_gui_hotlist_initialise(void)
{
- nserror res;
dialog_hotlist_template = ro_gui_dialog_load_template("tree");
-
- res = ro_hotlist_init();
- if (res != NSERROR_OK) {
- LOG("Failed initialising hotlist %d", res);
- }
}