aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-07-05 19:10:23 -0700
committerGuy Harris <guy@alum.mit.edu>2018-07-06 02:11:09 +0000
commit2d36c475f985e0499431ffb93bc65c8738370549 (patch)
treefc1ffd1d9ae4db10ca4a3288851ca4547beea984
parent874c978bbce62a7ed43934249057c4937d299627 (diff)
Use the display name in "Save As..." output for statistics taps.
Change-Id: I78ecc2db6cf0020a51637b1595f2b001d66addf4 Reviewed-on: https://code.wireshark.org/review/28633 Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r--ui/qt/tap_parameter_dialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/tap_parameter_dialog.cpp b/ui/qt/tap_parameter_dialog.cpp
index ddfae13445..284ba9ab96 100644
--- a/ui/qt/tap_parameter_dialog.cpp
+++ b/ui/qt/tap_parameter_dialog.cpp
@@ -270,7 +270,7 @@ QByteArray TapParameterDialog::getTreeAsString(st_format_type format)
QByteArray top_separator;
top_separator.fill('=', plain_header.length());
top_separator.append('\n');
- QString file_header = QString("%1 - %2:\n").arg(windowSubtitle(), cap_file_.fileName());
+ QString file_header = QString("%1 - %2:\n").arg(windowSubtitle(), cap_file_.fileDisplayName());
footer.fill('-', plain_header.length());
footer.append('\n');
plain_header.append('\n');
@@ -315,7 +315,7 @@ QByteArray TapParameterDialog::getTreeAsString(st_format_type format)
{
QString yaml_header;
ba.append("---\n");
- yaml_header = QString("Description: \"%1\"\nFile: \"%2\"\nItems:\n").arg(windowSubtitle()).arg(cap_file_.fileName());
+ yaml_header = QString("Description: \"%1\"\nFile: \"%2\"\nItems:\n").arg(windowSubtitle()).arg(cap_file_.fileDisplayName());
ba.append(yaml_header.toUtf8());
break;
}