ui: Fixed errors always shown after indexing

This commit is contained in:
Eberhard Graether
2017-05-31 13:44:58 +02:00
parent 8a6def2d7a
commit b79891693b
4 changed files with 12 additions and 6 deletions
+4 -1
View File
@@ -418,5 +418,8 @@ void StorageAccessProxy::handleMessage(MessageErrorFilterChanged* message)
{
setErrorFilter(message->errorFilter);
MessageShowErrors(getErrorCount()).dispatch();
if (message->showErrors)
{
MessageShowErrors(getErrorCount()).dispatch();
}
}
@@ -8,8 +8,9 @@ class MessageErrorFilterChanged
: public Message<MessageErrorFilterChanged>
{
public:
MessageErrorFilterChanged(const ErrorFilter& filter)
MessageErrorFilterChanged(const ErrorFilter& filter, bool showErrors)
: errorFilter(filter)
, showErrors(showErrors)
{
}
@@ -19,6 +20,7 @@ public:
}
const ErrorFilter errorFilter;
const bool showErrors;
};
#endif // MESSAGE_ERROR_FILTER_CHANGED_H