Skip to content

Commit

Permalink
Don't change filenames on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
srcejon committed Jun 29, 2024
1 parent e22688e commit 97193ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdrgui/gui/configurationsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
3 changes: 3 additions & 0 deletions sdrgui/gui/devicesetpresetsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 97193ef

Please sign in to comment.