ui: Fixed file content shown multiple times when clicking title button in non-indexed file with errors
This commit is contained in:
@@ -81,6 +81,11 @@ QtCodeSnippet* QtCodeFile::addCodeSnippet(const CodeSnippetParams& params)
|
||||
}
|
||||
}
|
||||
|
||||
if (params.locationFile->isWhole() && m_fileSnippet)
|
||||
{
|
||||
return m_fileSnippet;
|
||||
}
|
||||
|
||||
QtCodeSnippet* snippet = new QtCodeSnippet(params, m_navigator, this);
|
||||
|
||||
if (params.reduced)
|
||||
|
||||
Reference in New Issue
Block a user