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
+3 -2
View File
@@ -3,7 +3,7 @@
#include <QMovie>
#include "qt/utility/utilityQt.h"
#include "utility/messaging/type/MessageShowErrors.h"
#include "utility/messaging/type/MessageSearch.h"
#include "utility/ResourcePaths.h"
QtStatusBar::QtStatusBar()
@@ -78,5 +78,6 @@ void QtStatusBar::setErrorCount(size_t count)
void QtStatusBar::showErrors()
{
MessageShowErrors(-1).dispatch();
SearchMatch match = SearchMatch::createCommand(SearchMatch::COMMAND_ERROR);
MessageSearch(std::vector<SearchMatch>(1, match)).dispatch();
}