ticket:200
So I took the easy route and just wrapped a widet->setEnabled(false)
widget->setEnabled(true) around the setSoftThreshold code. Which should
hopefully prevent the possibility of calling setSoftThreshold before
the other call has terminated.
win->show();
}
-void MussaWindow::setSoftThreshold(int threshold)
+void MussaWindow::setSoftThreshold(int value)
{
- if (analysis->get_soft_threshold() != threshold) {
- analysis->set_soft_threshold(threshold);
+ if (analysis->get_soft_threshold() != value) {
+ threshold->setEnabled( false );
+ analysis->set_soft_threshold(value);
analysis->nway();
updateLinks();
update();
+ threshold->setEnabled( true );
}
}