Tweak the order of the UI updates when finishing a live-update capture so that

certain menu items are enabled correctly.

Should fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8108

svn path=/trunk/; revision=46629
This commit is contained in:
Evan Huus 2012-12-20 04:06:44 +00:00
parent b06842274a
commit 4e642fde4c
1 changed files with 6 additions and 3 deletions

View File

@ -1621,14 +1621,17 @@ main_capture_cb_capture_update_finished(capture_options *capture_opts)
add_menu_recent_capture_file(cf->filename);
}
/* Update the main window as appropriate */
main_update_for_unsaved_changes(cf);
/* Enable menu items that make sense if you're not currently running
a capture. */
main_set_for_capture_in_progress(FALSE);
set_capture_if_dialog_for_capture_in_progress(FALSE);
/* Update the main window as appropriate. This has to occur AFTER
* main_set_for_capture_in_progress() or else some of the menus are
* incorrectly disabled (see bug
* https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8108) */
main_update_for_unsaved_changes(cf);
/* Set up main window for a capture file. */
main_set_for_capture_file(TRUE);