We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7746b95 commit 15af6c3Copy full SHA for 15af6c3
1 file changed
src/evidence.cpp
@@ -487,7 +487,11 @@ void Courtroom::on_evidence_double_clicked(int p_id)
487
for (AOEvidenceButton *i_button : qAsConst(ui_evidence_list))
488
i_button->set_selected(false);
489
490
- ui_evidence_list.at(p_id)->set_selected(true);
+ // We have to check if the ID is on the currently displayed page.
491
+ // This is because SOMEONE allowed the switching of pages while evidence is still being edited.
492
+ if (p_id < ui_evidence_list.count()) {
493
+ ui_evidence_list.at(p_id)->set_selected(true);
494
+ }
495
current_evidence = f_real_id;
496
497
evi_type f_evi = local_evidence_list.at(f_real_id);
0 commit comments