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
09af2cf9
Commit
09af2cf9
authored
Sep 22, 2010
by
Thomas Hartmann
Browse files
QmlDesigner: crashfix
Check if object is not 0 and we are not called back from the destructor.
parent
6d229ef6
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/designercore/instances/objectnodeinstance.cpp
View file @
09af2cf9
...
...
@@ -782,7 +782,9 @@ QObject* ObjectNodeInstance::createObject(const NodeMetaInfo &metaInfo, QDeclara
QObject
*
ObjectNodeInstance
::
object
()
const
{
return
m_object
.
data
();
if
(
!
m_object
.
isNull
()
&&
!
QObjectPrivate
::
get
(
m_object
.
data
())
->
wasDeleted
)
return
m_object
.
data
();
return
0
;
}
bool
ObjectNodeInstance
::
hasContent
()
const
...
...
src/plugins/qmldesigner/designercore/instances/qmlgraphicsitemnodeinstance.cpp
View file @
09af2cf9
...
...
@@ -178,7 +178,10 @@ QRectF QmlGraphicsItemNodeInstance::boundingRect() const
}
}
return
qmlGraphicsItem
()
->
boundingRect
();
if
(
qmlGraphicsItem
())
return
qmlGraphicsItem
()
->
boundingRect
();
return
QRectF
();
}
//QVariant anchorLineFor(QDeclarativeItem *item, const AnchorLine &anchorLine)
...
...
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