aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/mtp3_summary_dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt/mtp3_summary_dialog.cpp')
-rw-r--r--ui/qt/mtp3_summary_dialog.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/qt/mtp3_summary_dialog.cpp b/ui/qt/mtp3_summary_dialog.cpp
index 412a0cb82f..acf7e6d10c 100644
--- a/ui/qt/mtp3_summary_dialog.cpp
+++ b/ui/qt/mtp3_summary_dialog.cpp
@@ -111,8 +111,9 @@ QString Mtp3SummaryDialog::summaryToHtml()
<< table_row_end;
QString format_str = wtap_file_type_subtype_string(summary.file_type);
- if (summary.compression_type == WTAP_GZIP_COMPRESSED) {
- format_str.append(tr(" (gzip compressed)"));
+ const char *compression_type_description = wtap_compression_type_description(summary.compression_type);
+ if (compression_type_description != NULL) {
+ format_str += QString::asprintf(" (%s)", compression_type_description);
}
out << table_row_begin
<< table_vheader_tmpl.arg(tr("Format"))