fix(cpn): Not saving on MacOS unless .etx in filename (#2830)

MacOS companion does not save models if ".etx" extension not in filename.

Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com>
This commit is contained in:
philmoz
2022-12-11 11:42:09 +10:00
committed by GitHub
co-authored by Phil Mitchell
parent 62bfb95838
commit a8bdf0c269
-4
View File
@@ -1250,11 +1250,7 @@ bool MdiChild::saveAs(bool isNew)
{
forceNewFilename();
QFileInfo fi(curFile);
#ifdef __APPLE__
QString filter;
#else
QString filter(ETX_FILES_FILTER % YML_FILES_FILTER);
#endif
QString fileName = QFileDialog::getSaveFileName(this, tr("Save As"), g.eepromDir() + "/" + fi.fileName(), filter);
if (fileName.isEmpty())