diff options
author | Michal Labedzki <michal.labedzki@tieto.com> | 2014-02-26 16:27:20 +0100 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2014-03-04 18:31:48 +0000 |
commit | 6a4049535a7ec9e5e175ffc18849b36125021a32 (patch) | |
tree | b9634ab6df6eafc4029cf6863a99d9d2ee211b45 /ui/qt/capture_file_dialog.cpp | |
parent | e6a45008d32d18153ec0a53236f8905abb0bf0b5 (diff) | |
download | wireshark-6a4049535a7ec9e5e175ffc18849b36125021a32.tar.gz |
win32: Implement format type selector in open file dialog
Change-Id: Idef1829fcc2b7b08783e5288bb6486ce19c4779b
Reviewed-on: https://code.wireshark.org/review/405
Reviewed-by: Evan Huus <eapache@gmail.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'ui/qt/capture_file_dialog.cpp')
-rw-r--r-- | ui/qt/capture_file_dialog.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/qt/capture_file_dialog.cpp b/ui/qt/capture_file_dialog.cpp index 20625f64fd..2cf966f77d 100644 --- a/ui/qt/capture_file_dialog.cpp +++ b/ui/qt/capture_file_dialog.cpp @@ -230,15 +230,13 @@ bool CaptureFileDialog::isCompressed() { } int CaptureFileDialog::open(QString &file_name, unsigned int &type) { - Q_UNUSED(type) // XXX Remove when type supporte is added to win32_open_file. GString *fname = g_string_new(file_name.toUtf8().constData()); GString *dfilter = g_string_new(display_filter_.toUtf8().constData()); gboolean wof_status; // XXX Add a widget->HWND routine to qt_ui_utils and use it instead. - wof_status = win32_open_file((HWND)parentWidget()->effectiveWinId(), fname, dfilter); + wof_status = win32_open_file((HWND)parentWidget()->effectiveWinId(), fname, &type, dfilter); file_name = fname->str; - //type = format_type_.currentIndex(); display_filter_ = dfilter->str; g_string_free(fname, TRUE); |