[FEM] solver_taskpanel: fix bug with Edit button

- when an error occurred during the Write process, the Edit button must not be enabled
  In this case the machine state is still at femsolver.run.PREPARE. If no error occurred it went one step up.
This commit is contained in:
Uwe
2023-02-02 06:54:05 +01:00
parent 62a2c33a05
commit f14dea3226

View File

@@ -340,7 +340,7 @@ class ControlWidget(QtGui.QWidget):
self._writeBtt.setDisabled(False)
self._editBtt.setDisabled(
not machine.solver.Proxy.editSupported()
or machine.state < femsolver.run.PREPARE
or machine.state <= femsolver.run.PREPARE
)
## @}