ScxmlEditor: Cleanup nullptr comparisons

Change-Id: I8b61929f1d23a6a7c46043b8967c1aebe333a7e7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Orgad Shaneh
2016-09-18 09:18:12 +03:00
committed by Orgad Shaneh
parent a9e796535a
commit 7fbbd8f2fd
9 changed files with 19 additions and 19 deletions

View File

@@ -139,7 +139,7 @@ void WarningItem::setTypeName(const QString &name)
void WarningItem::setWarningActive(bool active)
{
if (active && m_warning == nullptr && m_warningModel) {
if (active && !m_warning && m_warningModel) {
m_warning = m_warningModel->createWarning(m_severity, m_typeName, m_reason, m_description);
connect(m_warning, &OutputPane::Warning::dataChanged, this, &WarningItem::checkVisibility);
} else if (!active && m_warning) {