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
8582664c
Commit
8582664c
authored
Jan 28, 2010
by
Thomas Hartmann
Browse files
QmlDesigner: fixes crash bug (WriteLocker)
ModelNode::addChildNode() crashed
parent
de0beff4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/core/model/modelnode.cpp
View file @
8582664c
...
...
@@ -583,7 +583,6 @@ void ModelNode::removeProperty(const QString &name)
*/
ModelNode
ModelNode
::
addChildNode
(
const
QString
&
nodeTypeString
,
int
majorVersion
,
int
minorVersion
,
const
QString
&
propertyName
,
const
PropertyListType
&
propertyList
)
{
Internal
::
WriteLocker
locker
(
m_model
.
data
());
if
(
!
isValid
())
{
Q_ASSERT_X
(
isValid
(),
Q_FUNC_INFO
,
"model node is invalid"
);
throw
InvalidModelNodeException
(
__LINE__
,
__FUNCTION__
,
__FILE__
);
...
...
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