Skip to content

Commit

Permalink
Swap order of call now that algorithm executes on dialog accept.
Browse files Browse the repository at this point in the history
Refs #9756
  • Loading branch information
martyngigg committed Jun 30, 2014
1 parent 2978ba8 commit c6fc975
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,11 @@ void StartLiveDataDialog::setDefaultAccumulationMethod(const QString& inst)

void StartLiveDataDialog::accept()
{
AlgorithmDialog::accept();
// Now manually set the StartTime property as there's a computation needed
DateAndTime startTime = DateAndTime::getCurrentTime() - ui.dateTimeEdit->value()*60.0;
m_algorithm->setPropertyValue("StartTime",startTime.toISO8601String());

AlgorithmDialog::accept(); // accept executes the algorithm
}

}
Expand Down

0 comments on commit c6fc975

Please sign in to comment.