From e0057fb4971c455055025801a226cb9a4f95d0b0 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Fri, 19 Oct 2007 14:03:10 +0300 Subject: [PATCH] Update route table if downloading route --- src/cb.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); -- 2.39.5