diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-07-04 10:45:00 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-07-04 17:45:47 +0000 |
commit | 1c6dc6d31f147d1ea7b8694204e81cf5d827de23 (patch) | |
tree | dbbcec262aa62b42526f1f64cc7ab2e553e78c20 /ui/qt/wireshark_dialog.cpp | |
parent | 018025e3bc112821130a99e3ec94a53c35bc5878 (diff) |
Some fixes.
For filePath() and fileName(), just return a null string if we can't
convert from the native encoding to UTF-8 - those aren't used for
displaying, those are used for setting the main window's file name and
for generating names of files to save based on the capture file name.
Have fileDisplayName() just return the display name, without
"[closing]"/"[closed]" decoration or a special case for no file being
open (just return a null string if there's no file open), and have
fileTitle() return the decorated display name.
Change-Id: I244f318d5444dcf58527e5d38c4d073c28b73810
Reviewed-on: https://code.wireshark.org/review/28594
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/qt/wireshark_dialog.cpp')
-rw-r--r-- | ui/qt/wireshark_dialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/wireshark_dialog.cpp b/ui/qt/wireshark_dialog.cpp index 15931e3d41..4a219c42f2 100644 --- a/ui/qt/wireshark_dialog.cpp +++ b/ui/qt/wireshark_dialog.cpp @@ -75,7 +75,7 @@ void WiresharkDialog::setWindowSubtitle(const QString &subtitle) void WiresharkDialog::setWindowTitleFromSubtitle() { - QString title = wsApp->windowTitleString(QStringList() << subtitle_ << cap_file_.fileDisplayName()); + QString title = wsApp->windowTitleString(QStringList() << subtitle_ << cap_file_.fileTitle()); QDialog::setWindowTitle(title); } |