mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-11 02:46:12 -05:00
Don't change filenames on Android
This commit is contained in:
parent
e22688e462
commit
97193ef34d
@ -375,11 +375,14 @@ void ConfigurationsDialog::on_configurationExport_clicked()
|
|||||||
|
|
||||||
if (fileName != "")
|
if (fileName != "")
|
||||||
{
|
{
|
||||||
|
#ifndef ANDROID
|
||||||
|
// Can't change filenames on Android
|
||||||
QFileInfo fileInfo(fileName);
|
QFileInfo fileInfo(fileName);
|
||||||
|
|
||||||
if (fileInfo.suffix() != "cfgx") {
|
if (fileInfo.suffix() != "cfgx") {
|
||||||
fileName += ".cfgx";
|
fileName += ".cfgx";
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
QFile exportFile(fileName);
|
QFile exportFile(fileName);
|
||||||
|
|
||||||
|
@ -297,11 +297,14 @@ void DeviceSetPresetsDialog::on_presetExport_clicked()
|
|||||||
|
|
||||||
if (fileName != "")
|
if (fileName != "")
|
||||||
{
|
{
|
||||||
|
#ifndef ANDROID
|
||||||
|
// Can't change filenames on Android
|
||||||
QFileInfo fileInfo(fileName);
|
QFileInfo fileInfo(fileName);
|
||||||
|
|
||||||
if (fileInfo.suffix() != "prex") {
|
if (fileInfo.suffix() != "prex") {
|
||||||
fileName += ".prex";
|
fileName += ".prex";
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
QFile exportFile(fileName);
|
QFile exportFile(fileName);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user