return win32_check_save_as_with_comments(parent->effectiveWinId(), cf, file_type);
#else // Q_WS_WIN
guint32 comment_types;
- GArray *savable_file_types;
QMessageBox msg_dialog;
int response;
/* No. Are there formats in which we can write this file that
supports all the comments in this file? */
- savable_file_types = wtap_get_savable_file_types(file_type, cf->linktypes,
- comment_types);
- if (savable_file_types != NULL) {
- g_array_free(savable_file_types, TRUE);
-
+ if (wtap_dump_can_write(cf->linktypes, comment_types)) {
QPushButton *default_button;
/* Yes. Offer the user a choice of "Save in a format that
supports comments", "Discard comments and save in the