Mesh: fix #18801 - simply call gmsh if gmsh executable path is empty
This commit is contained in:
committed by
Chris Hennes
parent
f51e1eeb22
commit
ff91ce148f
@@ -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")
|
||||
|
||||
@@ -137,6 +137,9 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Gui::PrefFileChooser" name="fileChooser">
|
||||
<property name="toolTip">
|
||||
<string>Leave empty to use default gmsh executable</string>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>gmshExe</cstring>
|
||||
</property>
|
||||
|
||||
Reference in New Issue
Block a user