aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/models/export_objects_model.cpp
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-01-01 13:44:07 -0800
committerGuy Harris <guy@alum.mit.edu>2019-01-01 22:08:59 +0000
commitbe55c4f976249815a797875eefa655d035d1f628 (patch)
treeb2c4e758359fc0e88a5baebf7d8ab0d0f1f5a256 /ui/qt/models/export_objects_model.cpp
parente12270a730a60636ad36c06957b7e1f687c562a7 (diff)
Always report errors in eo_save_entry().
If a particular save failed, always let the user know. Change-Id: I618e0ff82813cd4249ab7b1714f9a50e095a1ea8 Reviewed-on: https://code.wireshark.org/review/31296 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/qt/models/export_objects_model.cpp')
-rw-r--r--ui/qt/models/export_objects_model.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/models/export_objects_model.cpp b/ui/qt/models/export_objects_model.cpp
index a1d96b6624..0977a217ee 100644
--- a/ui/qt/models/export_objects_model.cpp
+++ b/ui/qt/models/export_objects_model.cpp
@@ -146,7 +146,7 @@ bool ExportObjectModel::saveEntry(QModelIndex &index, QString filename)
return false;
if (filename.length() > 0) {
- eo_save_entry(filename.toUtf8().constData(), entry, TRUE);
+ eo_save_entry(filename.toUtf8().constData(), entry);
}
return true;
@@ -190,7 +190,7 @@ bool ExportObjectModel::saveAllEntries(QString path)
safe_filename->str, NULL);
g_string_free(safe_filename, TRUE);
} while (g_file_test(save_as_fullpath, G_FILE_TEST_EXISTS) && ++count < 1000);
- if (!eo_save_entry(save_as_fullpath, entry, FALSE))
+ if (!eo_save_entry(save_as_fullpath, entry))
all_saved = false;
g_free(save_as_fullpath);
save_as_fullpath = NULL;