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
This commit is contained in:
Ignacio Etcheverry 2018-04-09 09:15:43 +02:00 committed by GitHub
commit ea0e73f3c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {
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;