diff options
author | Nikodem Lokatelj <nikodem.lokatelj@interblockgaming.com> | 2018-03-30 16:32:14 +0200 |
---|---|---|
committer | Nikodem Lokatelj <nikodem.lokatelj@interblockgaming.com> | 2018-03-30 16:32:14 +0200 |
commit | 4fdee1d9f1265e29c836ba8887157682ad6e76f0 (patch) | |
tree | 8826f0388a2da866bbd9c98edacd7832ea8894e1 /modules/mono | |
parent | b704cfa4d5de9afe1a65db532bfd07663b5c7888 (diff) |
Fixed _issue_activated to take the correct issue id from the list
Diffstat (limited to 'modules/mono')
-rw-r--r-- | modules/mono/editor/mono_bottom_panel.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/mono/editor/mono_bottom_panel.cpp b/modules/mono/editor/mono_bottom_panel.cpp index 32aec2a3b5..2e431e5f5c 100644 --- a/modules/mono/editor/mono_bottom_panel.cpp +++ b/modules/mono/editor/mono_bottom_panel.cpp @@ -407,9 +407,14 @@ void MonoBuildTab::stop_build() { 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()) return; |