Clear table, reset log on disconnect
[fw/altos] / aoview / aoview_log.c
index 623c5aa62dbc4148a0a4d98a0dac4869f8262192..a9300f61e7c3d22b95ee70653a041a3f511c34c8 100644 (file)
@@ -52,7 +52,7 @@ aoview_log_configure(GtkWidget *widget, gpointer data)
        gtk_widget_hide(GTK_WIDGET(chooser));
 }
 
-static void
+void
 aoview_log_new(void)
 {
        if (aoview_log_file) {
@@ -60,6 +60,7 @@ aoview_log_new(void)
                aoview_log_file = NULL;
        }
        aoview_log_failed = 0;
+       aoview_state_new();
 }
 
 static void