Fixed _issue_activated to take the correct issue id from the list

(cherry picked from commit 4fdee1d9f1)
This commit is contained in:
Nikodem Lokatelj 2018-03-30 16:32:14 +02:00 committed by Hein-Pieter van Braam
parent 8ebd4bb874
commit b4733a1da9
1 changed files with 7 additions and 2 deletions

View File

@ -407,9 +407,14 @@ void MonoBuildTab::stop_build() {
void MonoBuildTab::_issue_activated(int p_idx) { void MonoBuildTab::_issue_activated(int p_idx) {
ERR_FAIL_INDEX(p_idx, issues.size()); ERR_FAIL_INDEX(p_idx, issues_list->get_item_count());
const BuildIssue &issue = issues[p_idx]; // Get correct issue idx from issue list
int issue_idx = this->issues_list->get_item_metadata(p_idx);
ERR_FAIL_INDEX(issue_idx, issues.size());
const BuildIssue &issue = issues[issue_idx];
if (issue.project_file.empty() && issue.file.empty()) if (issue.project_file.empty() && issue.file.empty())
return; return;