aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/export_dissection_dialog.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2019-11-24 17:32:06 -0600
committerAnders Broman <a.broman58@gmail.com>2019-11-26 05:37:37 +0000
commitf2dce23b408e277d5a2a243516fa267fe756ba53 (patch)
tree3bb38e4be02f02c67ab8adefdcc0b45be1e52d9e /ui/qt/export_dissection_dialog.cpp
parent69201185adfc0359abe08f6ed6befbea93c63f94 (diff)
Qt+macOS: Add /Volumes to the file dialog sidebar.
/Volumes is hidden on macOS, which means that it doesn't show up in Qt's non-native file dialog. Add a constructor to WiresharkFileDialog that adds /Volumes to the file dialog sidebar. Make CaptureFileDialog and ExportDissectionDialog subclasses of WiresharkFileDialog. Bug: 13840 Change-Id: I4d7da3948b203eb11fb64fa056eb42a448edf914 Reviewed-on: https://code.wireshark.org/review/35201 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/export_dissection_dialog.cpp')
-rw-r--r--ui/qt/export_dissection_dialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/export_dissection_dialog.cpp b/ui/qt/export_dissection_dialog.cpp
index 507d4c75e5..4ba50a6f58 100644
--- a/ui/qt/export_dissection_dialog.cpp
+++ b/ui/qt/export_dissection_dialog.cpp
@@ -47,7 +47,7 @@ static const QStringList export_extensions = QStringList()
#endif
ExportDissectionDialog::ExportDissectionDialog(QWidget *parent, capture_file *cap_file, export_type_e export_type, QString selRange):
- QFileDialog(parent),
+ WiresharkFileDialog(parent),
export_type_(export_type),
cap_file_(cap_file)
#if !defined(Q_OS_WIN)
@@ -159,7 +159,7 @@ void ExportDissectionDialog::show()
{
#if !defined(Q_OS_WIN)
if (cap_file_) {
- QFileDialog::show();
+ WiresharkFileDialog::show();
}
#else // Q_OS_WIN
win32_export_file((HWND)parentWidget()->effectiveWinId(), cap_file_, export_type_);