diff options
author | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-10-30 11:43:11 +0000 |
---|---|---|
committer | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-10-30 11:43:11 +0000 |
commit | c706474034c31c9aee5b4605a984ee445f82d011 (patch) | |
tree | 912e3126b56963a4d227d5cac93e7d2607c9ae80 /gtk/uat_gui.c | |
parent | 06f40ed519003dfec5e104a04684053732d051be (diff) |
Redissect packets instead of reload file on UAT changes.
This way we can do changes while capturing.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34709 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/uat_gui.c')
-rw-r--r-- | gtk/uat_gui.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gtk/uat_gui.c b/gtk/uat_gui.c index 307fb91f38..00329c25cd 100644 --- a/gtk/uat_gui.c +++ b/gtk/uat_gui.c @@ -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); |