diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-04-18 14:02:18 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-04-18 21:02:54 +0000 |
commit | 1015fa04313893ba81bca678534fad7a4630d6c8 (patch) | |
tree | ae8efa94137f1d17818f19971c4a304abdc34f2a /ui/export_pdu_ui_utils.c | |
parent | 870b3d2c0f46addafb6a7dab4278de48edc33535 (diff) |
Have a common "capture file close alert box" routine.
Take cf_close_failure_alert_box() and put it into libui, with the name
cfile_close_failure_alert_box(). Use it not only in file.c but also
in ui/export_pdu_ui_utils.c, ui/gtk/file_import_dlg.c, and
ui/qt/import_text_dialog.cpp where the error we get back isn't
necessarily an errno.
Have ui/gtk/file_import_dlg.c and ui/qt/import_text_dialog.cpp also use
cfile_open_failure_alert_box() on open errors.
Change-Id: I987f339a23ea58609390306a319923e7f92d5c07
Reviewed-on: https://code.wireshark.org/review/21203
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/export_pdu_ui_utils.c')
-rw-r--r-- | ui/export_pdu_ui_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/export_pdu_ui_utils.c b/ui/export_pdu_ui_utils.c index 0f2ee8d4b1..e16c1ff31d 100644 --- a/ui/export_pdu_ui_utils.c +++ b/ui/export_pdu_ui_utils.c @@ -68,7 +68,7 @@ exp_pdu_file_open(exp_pdu_t *exp_pdu_tap_data) err = exp_pdu_close(exp_pdu_tap_data); if (err!= 0) { - write_failure_alert_box(capfile_name, err); + cfile_close_failure_alert_box(capfile_name, err); } /* XXX: should this use the open_routine type in the cfile instead of WTAP_TYPE_AUTO? */ |