Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
0fa50d92
Commit
0fa50d92
authored
Apr 19, 2010
by
Thomas Hartmann
Browse files
QmlDesigner.propertyEditor: start transactions
parent
981ce880
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/components/propertyeditor/colorwidget.cpp
View file @
0fa50d92
...
...
@@ -475,11 +475,10 @@ void GradientLine::deleteGradient()
if
(
m_itemNode
.
isInBaseState
())
{
if
(
modelNode
.
hasProperty
(
m_gradientName
))
{
RewriterTransaction
transaction
;
m_itemNode
.
modelNode
().
removeProperty
(
m_gradientName
);
//### there is atm a bug in the node instances which lead to a crash if using destroy()
/*ModelNode gradientNode = modelNode.nodeProperty(m_gradientName).modelNode();
RewriterTransaction
transaction
=
m_itemNode
.
modelNode
().
view
()
->
beginRewriterTransaction
();
ModelNode
gradientNode
=
modelNode
.
nodeProperty
(
m_gradientName
).
modelNode
();
if
(
QmlObjectNode
(
gradientNode
).
isValid
())
QmlObjectNode(gradientNode).destroy();
*/
QmlObjectNode
(
gradientNode
).
destroy
();
}
}
}
...
...
@@ -662,7 +661,7 @@ void GradientLine::updateGradient()
{
if
(
!
active
())
return
;
RewriterTransaction
transaction
;
RewriterTransaction
transaction
=
m_itemNode
.
modelNode
().
view
()
->
beginRewriterTransaction
()
;
if
(
!
m_itemNode
.
isValid
())
return
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment