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:
Eberhard Graether
2018-06-18 20:31:52 +02:00
parent 009404dd37
commit c4901b6a7f
11 changed files with 91 additions and 28 deletions
@@ -80,7 +80,12 @@ void ErrorController::handleMessage(MessageShowErrors* message)
clear();
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);
}
if (errors.size())
{
getView()->showDockWidget();