data: fixed issues with errors in incomplete files
* fixed intermediatestorage merges might lose file indexed/complete information * fixed changing file complete to true only possible if the file has no errors * fixed clicking show errors for a file where no asociated errors were found showed all errors
This commit is contained in:
@@ -301,7 +301,12 @@ void CodeController::handleMessage(MessageShowErrors* message)
|
||||
CodeView::ScrollParams scrollParams(CodeView::ScrollParams::SCROLL_TO_DEFINITION);
|
||||
view->scrollTo(scrollParams);
|
||||
|
||||
std::vector<ErrorInfo> errors = m_storageAccess->getErrorsLimited(message->errorIds);
|
||||
std::vector<ErrorInfo> errors;
|
||||
if (!message->showsOnlyErrorIds || message->errorIds.size())
|
||||
{
|
||||
errors = m_storageAccess->getErrorsLimited(message->errorIds);
|
||||
}
|
||||
|
||||
m_collection = m_storageAccess->getErrorSourceLocations(errors);
|
||||
std::vector<CodeSnippetParams> snippets = getSnippetsForCollection(m_collection);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user