diff options
-rw-r--r-- | ui/gtk/mtp3_summary.c | 4 | ||||
-rw-r--r-- | ui/gtk/rlc_lte_graph.c | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/ui/gtk/mtp3_summary.c b/ui/gtk/mtp3_summary.c index 152de504bc..bc73fe7e58 100644 --- a/ui/gtk/mtp3_summary.c +++ b/ui/gtk/mtp3_summary.c @@ -280,6 +280,10 @@ void mtp3_sum_gtk_sum_cb(GtkAction *action _U_, gpointer user_data _U_) int tot_num_msus; double tot_num_bytes; + if (cfile.state == FILE_CLOSED) { + return; + } + /* initialize the tally */ summary_fill_in(&cfile, &summary); diff --git a/ui/gtk/rlc_lte_graph.c b/ui/gtk/rlc_lte_graph.c index 20c4756766..c0c9fdb055 100644 --- a/ui/gtk/rlc_lte_graph.c +++ b/ui/gtk/rlc_lte_graph.c @@ -867,6 +867,10 @@ static rlc_lte_tap_info *select_rlc_lte_session(capture_file *cf, struct segment GString *error_string; th_t th = {0, {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL}}; + if (cf->state == FILE_CLOSED) { + return NULL; + } + fdata = cf->current_frame; /* no real filter yet */ @@ -902,7 +906,7 @@ static rlc_lte_tap_info *select_rlc_lte_session(capture_file *cf, struct segment * as rlc_lte_graph_selected_packet_enabled() is used * to determine whether to enable any of our menu items. */ simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, - "Selected packet Doesn't have an RLC PDU"); + "Selected packet doesn't have an RLC PDU"); return NULL; } /* XXX fix this later, we should show a dialog allowing the user |