From d115caf85bbcc1c8757ba2f8913462c3fbd2e15e Mon Sep 17 00:00:00 2001 From: Mathew Sutcliffe Date: Tue, 14 Oct 2014 00:12:19 +0100 Subject: [PATCH] refs #336 Filtering validation messages using CLogCategory in MainWindow. --- src/swiftgui_standard/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/swiftgui_standard/mainwindow.cpp b/src/swiftgui_standard/mainwindow.cpp index 6b30c9d7c..01472c7be 100644 --- a/src/swiftgui_standard/mainwindow.cpp +++ b/src/swiftgui_standard/mainwindow.cpp @@ -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); }