Wireshark-commits: [Wireshark-commits] master 0d47113: extcap: Add file extension check
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=0d47113ddc53714ecd6d3c1b58b694321649d89e
Submitter: Anders Broman (a.broman58@xxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
0d47113 by Roland Knall (roland.knall@xxxxxxxxxxxxxxxxx):
extcap: Add file extension check
The file-open dialog can now be set with file extensions, allowing
the exclusion of unwanted file types. The syntax is the same
as for the Qt QFileDialog, e.g.: "Wireshark (*.pcap *.pcapng)"
Also, the mustexist option is now considered correctly
Change-Id: I9d4efbb5089ce1af640b2a894de07ed79520271e
Reviewed-on: https://code.wireshark.org/review/12913
Reviewed-by: Roland Knall <rknall@xxxxxxxxx>
Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
Actions performed:
from 0921c82 extcap: Add Required and cleanup
adds 0d47113 extcap: Add file extension check
Summary of changes:
extcap_parser.c | 11 +++++++++++
extcap_parser.h | 3 +++
ui/qt/extcap_argument.cpp | 8 ++++++++
ui/qt/extcap_argument.h | 2 ++
ui/qt/extcap_argument_file.cpp | 16 +++++++++++++---
5 files changed, 37 insertions(+), 3 deletions(-)