forked from qt-creator/qt-creator
Fix error message
Task-number: QDS-664 Change-Id: Iba5b8917908c6a1e9068e813ca09f8ebe70a7a12 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
committed by
Tim Jenssen
parent
65df4a2bc0
commit
36c167db5b
@@ -295,9 +295,11 @@ void TimelineSettingsModel::updateTimeline(int row)
|
|||||||
propertyChanges.modelNode().variantProperty("enabled").setValue(false);
|
propertyChanges.modelNode().variantProperty("enabled").setValue(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
QmlPropertyChanges propertyChanges(modelState.propertyChanges(timeline));
|
if (timeline.isValid()) {
|
||||||
if (propertyChanges.isValid())
|
QmlPropertyChanges propertyChanges(modelState.propertyChanges(timeline));
|
||||||
propertyChanges.modelNode().variantProperty("enabled").setValue(true);
|
if (propertyChanges.isValid())
|
||||||
|
propertyChanges.modelNode().variantProperty("enabled").setValue(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception &e) {
|
} catch (Exception &e) {
|
||||||
@@ -345,9 +347,11 @@ void TimelineSettingsModel::updateAnimation(int row)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QmlPropertyChanges propertyChanges(modelState.propertyChanges(animation));
|
if (animation.isValid()) {
|
||||||
if (propertyChanges.isValid())
|
QmlPropertyChanges propertyChanges(modelState.propertyChanges(animation));
|
||||||
propertyChanges.modelNode().variantProperty("running").setValue(true);
|
if (propertyChanges.isValid())
|
||||||
|
propertyChanges.modelNode().variantProperty("running").setValue(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception &e) {
|
} catch (Exception &e) {
|
||||||
m_exceptionError = e.description();
|
m_exceptionError = e.description();
|
||||||
|
Reference in New Issue
Block a user