From: Kaj-Michael Lang Date: Wed, 17 Oct 2007 21:44:27 +0000 (+0300) Subject: Add one more step to init X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa67a82177187a7ae80dd2711791fe0a1fd1827a;p=mapper Add one more step to init --- diff --git a/src/mapper.c b/src/mapper.c index 82efa05..f32706e 100644 --- a/src/mapper.c +++ b/src/mapper.c @@ -102,6 +102,7 @@ enum { MAPPER_INIT_VOICE, MAPPER_INIT_DB, MAPPER_INIT_UI, + MAPPER_INIT_GOTO, MAPPER_INIT_DONE } mapper_init_state; @@ -245,6 +246,11 @@ switch (mis) { break; case MAPPER_INIT_UI: mapper_ui_init(); + mis=MAPPER_INIT_GOTO; + break; + case MAPPER_INIT_GOTO: + if (map_goto_position(&_home)==FALSE) + g_printf("Home is not set\n"); mis=MAPPER_INIT_DONE; break; case MAPPER_INIT_DONE: