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
@@ -17,6 +17,16 @@ StatusBarView* StatusBarController::getView()
return Controller::getView<StatusBarView>();
}
void StatusBarController::handleMessage(MessageClearErrorCount* message)
{
getView()->setErrorCount(0);
}
void StatusBarController::handleMessage(MessageFinishedParsing* message)
{
getView()->setErrorCount(message->errorCount);
}
void StatusBarController::handleMessage(MessageShowErrors* message)
{
if (message->errorCount >= 0)