Verified Commit 5330e334 authored by Tobias WEBER's avatar Tobias WEBER
Browse files

path updating in config space dialog

parent f276b54f
......@@ -993,8 +993,11 @@ void ConfigSpaceDlg::CalculatePathMesh()
RedrawVoronoiPlot();
m_pathsbuilder->FinishPathMeshWorkflow(true);
// signal the availability of a path mesh
// signal the availability of a new path mesh
emit PathMeshAvailable();
if(m_autocalcpath)
CalculatePath();
}
......@@ -1309,16 +1312,18 @@ bool ConfigSpaceDlg::PathsBuilderProgress(CalculationState state, t_real progres
m_progress->setValue(int(progress*max_progress));
bool ok = !m_progress->wasCanceled();
RedrawVoronoiPlot();
if(state == CalculationState::SUCCEEDED ||
state == CalculationState::STEP_SUCCEEDED ||
state == CalculationState::FAILED)
{
m_progress->reset();
//m_progress.reset();
if(m_autocalcpath)
CalculatePath();
}
RedrawVoronoiPlot();
return ok;
}
......
......@@ -888,8 +888,11 @@ void PathsTool::UpdateStatusLabel()
ostr.precision(g_prec_gui);
ostr << std::fixed << std::showpos
<< "Cursor: (" << m_mouseX << ", " << m_mouseY << ") m";
if(m_curObj != "")
ostr << ", object: " << m_curObj;
// show object name
//if(m_curObj != "")
// ostr << ", object: " << m_curObj;
ostr << ".";
m_labelStatus->setText(ostr.str().c_str());
}
......
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