diff options
author | Ignacio Etcheverry <neikeq@users.noreply.github.com> | 2018-04-09 09:15:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-09 09:15:43 +0200 |
commit | ea0e73f3c8be433dba3b98808b57dd1e2ca4d934 (patch) | |
tree | 880ec335807194e6da73f9b8e2df0b96a9d587fe | |
parent | 0ee72fbd30b25ff397b570294c3cd2f65c176e34 (diff) | |
parent | 4fdee1d9f1265e29c836ba8887157682ad6e76f0 (diff) |
Merge pull request #17864 from NikodemL/fix_mono_bottom_panel_issue_activated
Fixed mono bottom panel to select the correct file when messages are filtered
-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 f1cf0bcdf5..1b5a303835 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; |