Skip to content
Snippets Groups Projects
Commit a160002d authored by Van Herck, Walter's avatar Van Herck, Walter
Browse files

Only set fit status to RUNNING when it was not interrupted

parent 904c2958
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ bool FitStatus::isCompleted() const ...@@ -43,7 +43,7 @@ bool FitStatus::isCompleted() const
void FitStatus::update(const Fit::Parameters& params, double chi2) void FitStatus::update(const Fit::Parameters& params, double chi2)
{ {
m_fit_status = RUNNING; if (!isInterrupted()) m_fit_status = RUNNING;
m_iterationInfo.update(params, chi2); m_iterationInfo.update(params, chi2);
......
...@@ -362,7 +362,8 @@ void IntEditor::onEditingFinished() ...@@ -362,7 +362,8 @@ void IntEditor::onEditingFinished()
void IntEditor::initEditor() void IntEditor::initEditor()
{ {
Q_ASSERT(m_data.type() == QVariant::Int); if (!m_data.isValid() || m_data.type() != QVariant::Int)
return;
m_intEditor->setValue(m_data.toInt()); m_intEditor->setValue(m_data.toInt());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment