Wireshark mailing list archives
Re: Open dialog file type is broken
From: Michal Labedzki <michal.labedzki () tieto com>
Date: Fri, 27 Nov 2015 13:44:18 +0100
Hello, Ok, I can see it now. It seems to I was on dark side of the force I did not see my combobox. Sorry about the confusion. Works for me. On 23 November 2015 at 22:12, Guy Harris <guy () alum mit edu> wrote:
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.
-- Pozdrawiam / Best regards ------------------------------------------------------------------------------------------------------------- Michał Łabędzki, Software Engineer Tieto Corporation Product Development Services http://www.tieto.com / http://www.tieto.pl --- ASCII: Michal Labedzki location: Swobodna 1 Street, 50-088 Wrocław, Poland room: 5.01 (desk next to 5.08) --- Please note: The information contained in this message may be legally privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, you are hereby notified that any unauthorised use, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank You. --- Please consider the environment before printing this e-mail. --- Tieto Poland spółka z ograniczoną odpowiedzialnością z siedzibą w Szczecinie, ul. Malczewskiego 26. Zarejestrowana w Sądzie Rejonowym Szczecin-Centrum w Szczecinie, XIII Wydział Gospodarczy Krajowego Rejestru Sądowego pod numerem 0000124858. NIP: 8542085557. REGON: 812023656. Kapitał zakładowy: 4 271500 PLN ___________________________________________________________________________ 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:
- Open dialog file type is broken Michal Labedzki (Nov 23)
- Re: Open dialog file type is broken Guy Harris (Nov 23)
- Re: Open dialog file type is broken Guy Harris (Nov 23)
- Re: Open dialog file type is broken Michal Labedzki (Nov 27)