Mesh: fix #18801 - simply call gmsh if gmsh executable path is empty

This commit is contained in:
Adrian Insaurralde Avalos
2025-08-29 18:13:29 -03:00
committed by Chris Hennes
parent f51e1eeb22
commit ff91ce148f
2 changed files with 6 additions and 0 deletions

View File

@@ -184,6 +184,9 @@ void GmshWidget::accept()
if (writeProject(inpFile, outFile)) {
// ./gmsh - -bin -2 /tmp/mesh.geo -o /tmp/best.stl
QString proc = d->ui.fileChooser->fileName();
if (proc.isEmpty()) {
proc = QLatin1String("gmsh");
}
QStringList args;
args << QLatin1String("-")
<< QLatin1String("-bin")