logic: Fixed old ErrorInfos on UndoRedoStack showed non-existing errors

This commit is contained in:
Eberhard Graether
2018-04-10 16:04:24 +02:00
parent 648caa9c35
commit 0e451fd768
11 changed files with 28 additions and 42 deletions
@@ -4,7 +4,6 @@
#include "utility/messaging/Message.h"
#include "data/ErrorCountInfo.h"
#include "data/ErrorInfo.h"
class MessageShowErrors
: public Message<MessageShowErrors>
@@ -16,8 +15,8 @@ public:
{
}
MessageShowErrors(const std::vector<ErrorInfo>& errors)
: errors(errors)
MessageShowErrors(const std::vector<Id>& errorIds)
: errorIds(errorIds)
, errorId(0)
{
}
@@ -33,7 +32,7 @@ public:
}
const ErrorCountInfo errorCount;
const std::vector<ErrorInfo> errors;
const std::vector<Id> errorIds;
const Id errorId;
};