diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2017-06-21 16:50:03 -0400 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2017-06-22 02:41:59 +0000 |
commit | 7af770dfa72eaca512b658b3ed702ad27c491e91 (patch) | |
tree | fdf9c30af8d68efdcd0337f33e26d4cb27f40b59 /wireshark-qt.cpp | |
parent | a9c2697714b8053b2cd9b1e1e0f07baf9d345c1f (diff) |
wsutil: Return error from profile_write_info_file
Change-Id: I1d91cef01ced6cceaa75d1618ffcb59eae5b8e6f
Reviewed-on: https://code.wireshark.org/review/22325
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'wireshark-qt.cpp')
-rw-r--r-- | wireshark-qt.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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(); |