logic: allow the user to discard an aborted indexer run

* keep old database on filesystem while indexing
* migrate old ".coatiproject" settings to new ".srctrlprj" extension when loading project
* send new errors in MessageErrorCountUpdate after injecting
* recheck filepath exist() in FileSystem's remove, rename, copy and create functions
* updated tasks to new "override" policy
This commit is contained in:
mlangkabel
2018-07-03 18:54:53 +02:00
parent c8a885be83
commit a1dd1a77c9
41 changed files with 434 additions and 215 deletions
@@ -84,16 +84,22 @@ void ErrorController::handleMessage(MessageErrorCountUpdate* message)
if (room > 0)
{
filter.limit = 0;
std::vector<ErrorInfo> errors = m_storageAccess->getErrorsLimited(filter);
ErrorCountInfo errorCount(errors);
std::vector<ErrorInfo> errors;
auto startIt = errors.begin() + m_errorCount;
errors = std::vector<ErrorInfo>(
startIt,
(errors.size() < m_errorCount + room) ? errors.end() : startIt + room
);
for (const ErrorInfo& error : message->newErrors)
{
if (filter.filter(error))
{
errors.push_back(error);
getView()->addErrors(errors, errorCount, true);
if (room > 0 && errors.size() >= size_t(room))
{
break;
}
}
}
getView()->addErrors(errors, message->errorCount, true);
getView()->showDockWidget();
m_errorCount += errors.size();