From 7af770dfa72eaca512b658b3ed702ad27c491e91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Wed, 21 Jun 2017 16:50:03 -0400 Subject: wsutil: Return error from profile_write_info_file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I1d91cef01ced6cceaa75d1618ffcb59eae5b8e6f Reviewed-on: https://code.wireshark.org/review/22325 Petri-Dish: Stig Bjørlykke Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- wireshark-qt.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'wireshark-qt.cpp') diff --git a/wireshark-qt.cpp b/wireshark-qt.cpp index 45cf6a80fb..e10f2e3f7b 100644 --- a/wireshark-qt.cpp +++ b/wireshark-qt.cpp @@ -915,7 +915,11 @@ int main(int argc, char *qt_argv[]) g_free(get_persconffile_path("io_graphs", TRUE)); profile_store_persconffiles(FALSE); - profile_write_info_file(); + if (!profile_write_info_file(&rf_path)) { + simple_dialog(ESD_TYPE_WARN, ESD_BTN_OK, + "Could not create file\n\"%s\"", rf_path); + g_free (rf_path); + } ret_val = wsApp->exec(); -- cgit v1.2.3