From 1adf52033cc8877cdee97c03636645968b4e9820 Mon Sep 17 00:00:00 2001 From: "Srivats P." Date: Sun, 8 May 2011 13:04:14 +0530 Subject: [PATCH] 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 --- client/portswindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/portswindow.cpp b/client/portswindow.cpp index 837fb89..f6817e1 100644 --- a/client/portswindow.cpp +++ b/client/portswindow.cpp @@ -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