On some linux distros, the native "save" dialog can't distinguish the Ostinato and PCAP filters - so we don't use native dialog for *nix platforms

This commit is contained in:
Srivats P. 2011-05-08 13:04:14 +05:30
parent d05821da66
commit 1adf52033c

View File

@ -521,8 +521,9 @@ void PortsWindow::on_actionSave_Streams_triggered()
QFileDialog::Options options;
// On Mac OS with Native Dialog, getSaveFileName() ignores fileType
// which we need.
#ifdef Q_OS_MAC
// which we need.On some Linux distros the native dialog can't
// distinguish between Ostinato(*) and PCAP(*)
#if defined(Q_OS_MAC) || defined(Q_OS_UNIX)
options |= QFileDialog::DontUseNativeDialog;
#endif