diff options
author | Binh Trinh <beango@gmail.com> | 2016-09-18 15:33:44 -0400 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2016-09-19 16:17:35 +0000 |
commit | ee47d8c8dbad10a7f55287aec1fee3257c59cc61 (patch) | |
tree | efacd0d0f59da5e53c915e2e5542b12faf2c9a2c /ui/qt/capture_file_dialog.cpp | |
parent | a8e727b636ad39e1b041458411450882ac381247 (diff) | |
download | wireshark-ee47d8c8dbad10a7f55287aec1fee3257c59cc61.tar.gz |
Qt: Fix bug in capture file dialog introduced by HideNameFilterDetails
Restore File->Save As and File->Export Specified Packets functionalities broken by commit c711bc64573e20e343f343a53ad4d1d50add433d.
Change-Id: I5d246d296979b5e509a90569094d672083b06b9b
Reviewed-on: https://code.wireshark.org/review/17783
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/capture_file_dialog.cpp')
-rw-r--r-- | ui/qt/capture_file_dialog.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/qt/capture_file_dialog.cpp b/ui/qt/capture_file_dialog.cpp index 844997ef47..699840e3d9 100644 --- a/ui/qt/capture_file_dialog.cpp +++ b/ui/qt/capture_file_dialog.cpp @@ -660,6 +660,7 @@ QStringList CaptureFileDialog::buildFileSaveAsTypeList(bool must_support_all_com if (savable_file_types_subtypes != NULL) { QString file_type; + QString hash_file_type; int ft; /* OK, we have at least one file type we can save this file as. (If we didn't, we shouldn't have gotten here in the first @@ -669,8 +670,9 @@ QStringList CaptureFileDialog::buildFileSaveAsTypeList(bool must_support_all_com if (default_ft_ < 1) default_ft_ = ft; /* first file type is the default */ file_type = fileType(ft); + hash_file_type = fileType(ft, false); filters << file_type; - type_hash_[file_type] = ft; + type_hash_[hash_file_type] = ft; } g_array_free(savable_file_types_subtypes, TRUE); } |