Commit 2840fe9b authored by Bob Obara's avatar Bob Obara Committed by Kitware Robot

Merge topic 'fixingMeshButton'

fa13ea6c BUG: Fixing Mesh Button State
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !454
parents 4ed915ce fa13ea6c
Pipeline #64885 failed with stage
in 0 seconds
......@@ -311,11 +311,6 @@ bool pqSMTKMeshPanel::submitMeshJob()
smtk::io::Logger inputLogger;
smtk::io::AttributeWriter writer;
std::string serializedAttributes;
// First lets change the Mesh Button to reflect that we are mesh
this->MeshButton->setText("Meshing ...");
this->MeshButton->setEnabled(false);
QCoreApplication::processEvents();
this->MeshButton->repaint();
//yes this returns false for being a valid, and true when an error occurs
bool serialized = !writer.writeContents(this->AttSystem, serializedAttributes, inputLogger);
if (!serialized)
......@@ -354,16 +349,21 @@ bool pqSMTKMeshPanel::submitMeshJob()
//send to the operator the serialized instance information
meshSpecification->findString("meshingControlAttributes")->setValue(serializedAttributes);
this->MeshButton->setText("Meshing ...");
this->MeshButton->setEnabled(false);
QCoreApplication::processEvents();
this->MeshButton->repaint();
const bool meshCreated = this->ModelManager->startOperation(meshOp);
this->MeshButton->setText("Mesh");
this->MeshButton->setEnabled(true);
if (!meshCreated)
{
return false;
}
}
// Finally lets change the Mesh Button to reflect that we are done meshing
this->MeshButton->setText("Mesh");
this->MeshButton->setEnabled(true);
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment