mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 23:35:33 +08:00
refs #336 Filtering validation messages using CLogCategory in MainWindow.
This commit is contained in:
@@ -314,7 +314,7 @@ void MainWindow::ps_displayStatusMessageInGui(const CStatusMessage &statusMessag
|
|||||||
|
|
||||||
// display overlay for errors, but not for validation
|
// display overlay for errors, but not for validation
|
||||||
// TODO smarter use of CLogCategoryHandler to dispatch different categories of message to different MainWindow slots
|
// 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);
|
this->m_compInfoWindow->displayStatusMessage(statusMessage);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user