From a8bdf0c2694ec2e754ed355557c4fa9156285740 Mon Sep 17 00:00:00 2001 From: philmoz Date: Sun, 11 Dec 2022 12:42:09 +1100 Subject: [PATCH] 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 --- companion/src/mdichild.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/companion/src/mdichild.cpp b/companion/src/mdichild.cpp index cbb4454e2..e545f8457 100644 --- a/companion/src/mdichild.cpp +++ b/companion/src/mdichild.cpp @@ -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())