]> err.no Git - mapper/commitdiff
Update route table if downloading route
authorKaj-Michael Lang <milang@angel.tal.org>
Fri, 19 Oct 2007 11:03:10 +0000 (14:03 +0300)
committerKaj-Michael Lang <milang@angel.tal.org>
Fri, 19 Oct 2007 11:03:10 +0000 (14:03 +0300)
src/cb.c

index b962dd754ada3031dc7688d6815784bc7c0abbcd..2b2b0b311aea345cbd7cf6970078039fb7b7c6a1 100644 (file)
--- a/src/cb.c
+++ b/src/cb.c
 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);