summaryrefslogtreecommitdiff
path: root/navit/navit.c
diff options
context:
space:
mode:
authorsleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-07-05 20:40:15 +0000
committersleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-07-05 20:40:15 +0000
commit5bd4713a89477e0b9bed32db66f65282fd3d25a3 (patch)
tree477f475b7bc5851000023b7244274ddf0a3a932b /navit/navit.c
parentf63324207a5556be01cd660d9d5987338cd11379 (diff)
downloadnavit-svn-5bd4713a89477e0b9bed32db66f65282fd3d25a3.tar.gz
Fix:core:Suppress bogus warning if bookmark.txt or destination.txt do not (yet) exist.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5183 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/navit.c')
-rw-r--r--navit/navit.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/navit/navit.c b/navit/navit.c
index 1f818479..4af07bd2 100644
--- a/navit/navit.c
+++ b/navit/navit.c
@@ -1685,7 +1685,7 @@ navit_former_destinations_active(struct navit *this_)
}
struct map* read_former_destinations_from_file(){
- struct attr type, data, flags, *attrs[4];
+ struct attr type, data, no_warn, flags, *attrs[5];
char *destination_file = bookmarks_get_destination_file(FALSE);
struct map *m;
@@ -1695,10 +1695,14 @@ struct map* read_former_destinations_from_file(){
data.type=attr_data;
data.u.str=destination_file;
+ no_warn.type=attr_no_warning_if_map_file_missing;
+ no_warn.u.num=1;
+
flags.type=attr_flags;
flags.u.num=1;
- attrs[0]=&type; attrs[1]=&data; attrs[2]=&flags; attrs[3]=NULL;
+ attrs[0]=&type; attrs[1]=&data; attrs[2]=&flags;
+ attrs[3]=&no_warn; attrs[4]=NULL;
m=map_new(NULL, attrs);
g_free(destination_file);