From 97193ef34d1f25f11c1d281cdb3c8b24a7c03d3d Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Sat, 29 Jun 2024 11:50:44 +0100 Subject: [PATCH] Don't change filenames on Android --- sdrgui/gui/configurationsdialog.cpp | 3 +++ sdrgui/gui/devicesetpresetsdialog.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/sdrgui/gui/configurationsdialog.cpp b/sdrgui/gui/configurationsdialog.cpp index edbc21068..6920bfe7e 100644 --- a/sdrgui/gui/configurationsdialog.cpp +++ b/sdrgui/gui/configurationsdialog.cpp @@ -375,11 +375,14 @@ void ConfigurationsDialog::on_configurationExport_clicked() if (fileName != "") { +#ifndef ANDROID + // Can't change filenames on Android QFileInfo fileInfo(fileName); if (fileInfo.suffix() != "cfgx") { fileName += ".cfgx"; } +#endif QFile exportFile(fileName); diff --git a/sdrgui/gui/devicesetpresetsdialog.cpp b/sdrgui/gui/devicesetpresetsdialog.cpp index 1b7ff8b9c..7c9490373 100644 --- a/sdrgui/gui/devicesetpresetsdialog.cpp +++ b/sdrgui/gui/devicesetpresetsdialog.cpp @@ -297,11 +297,14 @@ void DeviceSetPresetsDialog::on_presetExport_clicked() if (fileName != "") { +#ifndef ANDROID + // Can't change filenames on Android QFileInfo fileInfo(fileName); if (fileInfo.suffix() != "prex") { fileName += ".prex"; } +#endif QFile exportFile(fileName);