diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-04-09 02:01:05 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-04-09 17:57:52 +0000 |
commit | 7d5ce06cbe35f3f818695c87e5b0f42172ee3784 (patch) | |
tree | b1819216afd831302cc94af54187122a2efdd4d8 /ui/qt/capture_filter_edit.cpp | |
parent | 1abbb503e4242f56921b7ee950f185711e9f85c0 (diff) | |
download | wireshark-7d5ce06cbe35f3f818695c87e5b0f42172ee3784.tar.gz |
Pull the error reporting into {read,save}_filter_list.
Change-Id: I4d9582661f2f1728d400eeb2a1b1dea98f32ce7f
Reviewed-on: https://code.wireshark.org/review/20982
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/qt/capture_filter_edit.cpp')
-rw-r--r-- | ui/qt/capture_filter_edit.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/ui/qt/capture_filter_edit.cpp b/ui/qt/capture_filter_edit.cpp index 89e2bd8df4..083b1df119 100644 --- a/ui/qt/capture_filter_edit.cpp +++ b/ui/qt/capture_filter_edit.cpp @@ -506,18 +506,7 @@ void CaptureFilterEdit::removeFilter() } } - char *f_path; - int f_save_errno; - - save_filter_list(CFILTER_LIST, &f_path, &f_save_errno); - if (f_path != NULL) { - // We had an error saving the filter. - QString warning_title = tr("Unable to save capture filter settings."); - QString warning_msg = tr("Could not save to your capture filter file\n\"%1\": %2.").arg(f_path).arg(g_strerror(f_save_errno)); - - QMessageBox::warning(this, warning_title, warning_msg, QMessageBox::Ok); - g_free(f_path); - } + save_filter_list(CFILTER_LIST); updateBookmarkMenu(); } |