diff options
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/capture_dlg.c | 14 | ||||
-rw-r--r-- | gtk/main.c | 5 |
2 files changed, 10 insertions, 9 deletions
diff --git a/gtk/capture_dlg.c b/gtk/capture_dlg.c index 246ba922a4..470a22cf37 100644 --- a/gtk/capture_dlg.c +++ b/gtk/capture_dlg.c @@ -1417,8 +1417,8 @@ capture_prep_ok_cb(GtkWidget *ok_bt _U_, gpointer parent_w) { capture_opts->autostop_files = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(stop_files_sb)); - if(capture_opts->real_time_mode) - capture_opts->multi_files_on = FALSE; +/* if(capture_opts->real_time_mode) + capture_opts->multi_files_on = FALSE;*/ if (capture_opts->multi_files_on) { capture_opts->has_autostop_filesize = @@ -1563,25 +1563,25 @@ capture_prep_adjust_sensitivity(GtkWidget *tb _U_, gpointer parent_w) mode off if it's on, and make its toggle button, and the spin button for the number of ring buffer files (and the spin button's label), insensitive. */ - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(multi_files_on_cb), FALSE); - gtk_widget_set_sensitive(GTK_WIDGET(multi_files_on_cb), FALSE); +/* gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(multi_files_on_cb), FALSE); + gtk_widget_set_sensitive(GTK_WIDGET(multi_files_on_cb), FALSE);*/ /* Auto-scroll mode is meaningful only in "Update list of packets in real time" captures, so make its toggle button sensitive. */ gtk_widget_set_sensitive(GTK_WIDGET(auto_scroll_cb), TRUE); - gtk_widget_set_sensitive(GTK_WIDGET(hide_info_cb), TRUE); + /*gtk_widget_set_sensitive(GTK_WIDGET(hide_info_cb), TRUE);*/ } else { /* "Update list of packets in real time" captures disabled; that means ring buffer mode is OK, so make its toggle button sensitive. */ - gtk_widget_set_sensitive(GTK_WIDGET(multi_files_on_cb), TRUE); +/* gtk_widget_set_sensitive(GTK_WIDGET(multi_files_on_cb), TRUE);*/ /* Auto-scroll mode is meaningful only in "Update list of packets in real time" captures, so make its toggle button insensitive. */ gtk_widget_set_sensitive(GTK_WIDGET(auto_scroll_cb), FALSE); - gtk_widget_set_sensitive(GTK_WIDGET(hide_info_cb), FALSE); + /*gtk_widget_set_sensitive(GTK_WIDGET(hide_info_cb), FALSE);*/ } if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(multi_files_on_cb))) { diff --git a/gtk/main.c b/gtk/main.c index 647d9cf7cf..200017952b 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -1190,7 +1190,7 @@ set_display_filename(capture_file *cf) name_ptr = cf_get_display_name(cf); - if (!cf->is_tempfile) { + if (!cf->is_tempfile && cf->filename) { /* Add this filename to the list of recent files in the "Recent Files" submenu */ add_menu_recent_capture_file(cf->filename); } @@ -2107,7 +2107,8 @@ main(int argc, char *argv[]) }*/ if (!capture_opts->has_autostop_filesize && !capture_opts->has_file_duration) { fprintf(stderr, "ethereal: Ring buffer requested, but no maximum capture file size or duration were specified.\n"); - capture_opts->multi_files_on = FALSE; +/* XXX - this must be redesigned as the conditions changed */ +/* capture_opts->multi_files_on = FALSE;*/ } } } |