ui: Clearing error count when parsing starts

* fixed undo showed errors twice when activated from status bar.
This commit is contained in:
Eberhard Graether
2016-01-28 14:30:52 +01:00
parent 635f6058c6
commit 7bd44a9f45
8 changed files with 43 additions and 19 deletions
@@ -200,17 +200,6 @@ void UndoRedoController::handleMessage(MessageSearch* message)
processCommand(command);
}
void UndoRedoController::handleMessage(MessageShowErrors* message)
{
if (m_lastCommand.message && m_lastCommand.message->getType() == message->getType())
{
return;
}
Command command(std::make_shared<MessageShowErrors>(*message), 0);
processCommand(command);
}
void UndoRedoController::handleMessage(MessageShowScope* message)
{
Command command(std::make_shared<MessageShowScope>(*message), 1);