Don't change filenames on Android

pull/2190/head
Jon Beniston 2024-06-29 11:50:44 +01:00
rodzic e22688e462
commit 97193ef34d
2 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -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);

Wyświetl plik

@ -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);