Skip to content

Commit 7c644af

Browse files
committed
Make sure stats are recomputed when groups change.
1 parent 62f863f commit 7c644af

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Studio/Analysis/AnalysisTool.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ void AnalysisTool::group_p_values_clicked() {
524524
void AnalysisTool::network_analysis_clicked() {
525525
if (ui_->network_feature->currentText().isEmpty()) {
526526
QMessageBox::warning(this, "Network Analysis", "Project must have a scalar feature for network analysis.");
527-
//SW_WARN("Project must have a scalar features for network analysis");
527+
// SW_WARN("Project must have a scalar features for network analysis");
528528
return;
529529
}
530530
network_analysis_job_ =
@@ -610,6 +610,7 @@ bool AnalysisTool::compute_stats() {
610610
if (particles.size() == 0) {
611611
continue; // skip any that don't have particles
612612
}
613+
613614
if (groups_active()) {
614615
auto group = shape->get_subject()->get_group_value(group_set);
615616
if (group == left_group) {
@@ -1461,6 +1462,8 @@ void AnalysisTool::update_group_boxes() {
14611462
//---------------------------------------------------------------------------
14621463
void AnalysisTool::update_group_values() {
14631464
block_group_change_ = true;
1465+
stats_ready_ = false;
1466+
14641467
auto values = session_->get_project()->get_group_values(ui_->group_combo->currentText().toStdString());
14651468

14661469
if (values != current_group_values_) {

0 commit comments

Comments
 (0)