From: Kaj-Michael Lang Date: Fri, 19 Oct 2007 11:03:10 +0000 (+0300) Subject: Update route table if downloading route X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0057fb4971c455055025801a226cb9a4f95d0b0;p=mapper Update route table if downloading route --- diff --git a/src/cb.c b/src/cb.c index b962dd7..2b2b0b3 100644 --- a/src/cb.c +++ b/src/cb.c @@ -37,7 +37,14 @@ gboolean menu_cb_route_download(GtkAction * action) { +GtkListStore *store; + route_download(NULL); +store=route_generate_store(); +if (store!=NULL) { + gtk_tree_view_set_model(route_tree_view, store); + g_object_unref(G_OBJECT(store)); +} return TRUE; } @@ -47,7 +54,6 @@ menu_cb_route_open(GtkAction * action) GtkListStore *store; route_open_file(); - store=route_generate_store(); if (store!=NULL) { gtk_tree_view_set_model(route_tree_view, store);