Redissect packets instead of reload file on UAT changes.

This way we can do changes while capturing.

svn path=/trunk/; revision=34709
This commit is contained in:
Stig Bjørlykke 2010-10-30 11:43:11 +00:00
parent fd2c5fbccc
commit c0ea7f05bf
1 changed files with 3 additions and 6 deletions

View File

@ -716,7 +716,7 @@ static void uat_cancel_cb(GtkWidget *button _U_, gpointer u) {
report_failure("Error while loading %s: %s",uat->name,err);
}
if (cfile.state == FILE_READ_DONE) cf_reload(&cfile);
redissect_packets ();
}
g_signal_handlers_disconnect_by_func(uat->rep->window, uat_window_delete_event_cb, uat);
@ -730,8 +730,8 @@ static void uat_apply_cb(GtkButton *button _U_, gpointer u) {
uat_t* uat = u;
if (uat->changed) {
if (cfile.state == FILE_READ_DONE) cf_reload(&cfile);
if (uat->post_update_cb) uat->post_update_cb();
redissect_packets ();
}
}
@ -746,11 +746,8 @@ static void uat_ok_cb(GtkButton *button _U_, gpointer u) {
report_failure("Error while saving %s: %s",uat->name,err);
}
if (cfile.state == FILE_READ_DONE) cf_reload(&cfile);
if (uat->post_update_cb) uat->post_update_cb();
redissect_packets ();
}
g_signal_handlers_disconnect_by_func(uat->rep->window, uat_window_delete_event_cb, uat);