forked from qt-creator/qt-creator
QmlDesigner: Relax condition
The to item can be invalid in some cases. Change-Id: I0bd7a3f6ee2dc3aa7981ad266945cdceaaff647a Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -924,10 +924,10 @@ void FormEditorTransitionItem::paint(QPainter *painter, const QStyleOptionGraphi
|
||||
QmlFlowActionAreaNode areaNode = ModelNode();
|
||||
|
||||
bool joinConnection = false;
|
||||
if (from.isValid() && to.isValid())
|
||||
|
||||
bool isStartLine = false;
|
||||
|
||||
if (from.isValid()) {
|
||||
for (const QmlFlowActionAreaNode &area : from.flowActionAreas()) {
|
||||
if (area.targetTransition() == qmlItemNode().modelNode())
|
||||
areaNode = area;
|
||||
|
Reference in New Issue
Block a user