ui: Fixed errors always shown after indexing
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -183,11 +183,12 @@ void QtErrorView::setErrorCount(ErrorCountInfo info)
|
||||
void QtErrorView::resetErrorLimit()
|
||||
{
|
||||
ErrorFilter filter;
|
||||
|
||||
m_errorFilter.limit = filter.limit;
|
||||
errorFilterChanged();
|
||||
errorFilterChanged(0, false);
|
||||
}
|
||||
|
||||
void QtErrorView::errorFilterChanged(int i)
|
||||
void QtErrorView::errorFilterChanged(int i, bool showErrors)
|
||||
{
|
||||
m_table->selectionModel()->clearSelection();
|
||||
|
||||
@@ -196,7 +197,7 @@ void QtErrorView::errorFilterChanged(int i)
|
||||
m_errorFilter.unindexedError = m_showNonIndexedErrors->isChecked();
|
||||
m_errorFilter.unindexedFatal = m_showNonIndexedFatals->isChecked();
|
||||
|
||||
MessageErrorFilterChanged(m_errorFilter).dispatch();
|
||||
MessageErrorFilterChanged(m_errorFilter, showErrors).dispatch();
|
||||
}
|
||||
|
||||
void QtErrorView::doRefreshView()
|
||||
|
||||
@@ -38,7 +38,7 @@ public:
|
||||
virtual void resetErrorLimit();
|
||||
|
||||
private slots:
|
||||
void errorFilterChanged(int i = 0);
|
||||
void errorFilterChanged(int i = 0, bool showErrors = true);
|
||||
|
||||
private:
|
||||
enum COLUMN {
|
||||
|
||||
Reference in New Issue
Block a user