Wireshark mailing list archives

Re: Open dialog file type is broken


From: Guy Harris <guy () alum mit edu>
Date: Mon, 23 Nov 2015 13:12:26 -0800


On Nov 23, 2015, at 2:59 AM, Michal Labedzki <michal.labedzki () tieto com> wrote:

   *    For meta-filters, remove the file extension list to eliminate
   *    clutter. Examples: "All files," "All pictures," "All music,"
   *    and "All videos."

So you can add all supported by Wireshark file types, but without
extension (*.*).

The only way to show all files that are Wireshark supported file types, without checking the file extension, is to have 
some hook in the file dialog that hands the file name of every file in the directory to a callback, with the callback 
trying to open the file and:

        if that succeeds, closing it and returning a "yes, show this file" indication;

        if that fails, returning a "no, don't show this file" indication.

That would be more expensive than matching files based on the file extension, and I'm not sure the Qt file dialogs 
support it - it *might* be possible to do that by subclassing that dialog, but I'm not sure.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: