Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
196350e3
Commit
196350e3
authored
May 11, 2010
by
Thomas Hartmann
Browse files
QmlDesigner.propertyEditor: crash fix for gradient editing
parent
a877e6cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/components/propertyeditor/colorwidget.cpp
View file @
196350e3
...
...
@@ -389,7 +389,7 @@ void ColorBox::mouseMoveEvent(QMouseEvent *e)
void
GradientLine
::
setItemNode
(
const
QVariant
&
itemNode
)
{
if
(
!
itemNode
.
value
<
ModelNode
>
().
isValid
()
||
!
QmlItemNode
(
itemNode
.
value
<
ModelNode
>
()).
hasNodeParent
()
)
if
(
!
itemNode
.
value
<
ModelNode
>
().
isValid
())
return
;
m_itemNode
=
itemNode
.
value
<
ModelNode
>
();
setup
();
...
...
@@ -442,6 +442,8 @@ void GradientLine::setActiveColor(const QColor &newColor)
void
GradientLine
::
setupGradient
()
{
ModelNode
modelNode
=
m_itemNode
.
modelNode
();
if
(
!
modelNode
.
isValid
())
return
;
m_colorList
.
clear
();
m_stops
.
clear
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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