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
+2 -3
View File
@@ -5,6 +5,7 @@
#include "utility/file/FileSystem.h"
#include "utility/logging/logging.h"
#include "utility/messaging/type/MessageClearErrorCount.h"
#include "utility/messaging/type/MessageShowErrors.h"
#include "utility/TimePoint.h"
#include "utility/utility.h"
@@ -165,9 +166,7 @@ void Storage::logStats() const
void Storage::startParsing()
{
MessageShowErrors msg(getErrorCount());
msg.setSendAsTask(false);
msg.dispatch();
MessageClearErrorCount().dispatch();
m_sqliteStorage.setVersion(Version::getApplicationVersion());
}