forked from qt-creator/qt-creator
ScxmlEditor: Cleanup nullptr comparisons
Change-Id: I8b61929f1d23a6a7c46043b8967c1aebe333a7e7 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
a9e796535a
commit
7fbbd8f2fd
@@ -508,7 +508,7 @@ ScxmlTag *ScxmlDocument::currentTag() const
|
||||
void ScxmlDocument::changeParent(ScxmlTag *child, ScxmlTag *newParent, int tagIndex)
|
||||
{
|
||||
if (child && child->parentTag() != newParent && !m_undoRedoRunning)
|
||||
m_undoStack->push(new ChangeParentCommand(this, child, newParent == nullptr ? rootTag() : newParent, tagIndex));
|
||||
m_undoStack->push(new ChangeParentCommand(this, child, !newParent ? rootTag() : newParent, tagIndex));
|
||||
}
|
||||
|
||||
void ScxmlDocument::changeOrder(ScxmlTag *child, int newPos)
|
||||
|
||||
Reference in New Issue
Block a user