refs #336 Filtering validation messages using CLogCategory in MainWindow.

This commit is contained in:
Mathew Sutcliffe
2014-10-14 00:12:19 +01:00
parent a294e8db0f
commit d115caf85b

View File

@@ -314,7 +314,7 @@ void MainWindow::ps_displayStatusMessageInGui(const CStatusMessage &statusMessag
// display overlay for errors, but not for validation
// TODO smarter use of CLogCategoryHandler to dispatch different categories of message to different MainWindow slots
if (statusMessage.getSeverity() == CStatusMessage::SeverityError && ! statusMessage.getCategory().endsWith(".validation"))
if (statusMessage.getSeverity() == CStatusMessage::SeverityError && ! statusMessage.getCategories().contains(CLogCategory::validation()))
{
this->m_compInfoWindow->displayStatusMessage(statusMessage);
}