From f2dce23b408e277d5a2a243516fa267fe756ba53 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Sun, 24 Nov 2019 17:32:06 -0600 Subject: 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 Petri-Dish: Gerald Combs Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- ui/qt/export_dissection_dialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui/qt/export_dissection_dialog.cpp') 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_); -- cgit v1.2.3