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
418fda61
Commit
418fda61
authored
Jan 07, 2010
by
Thomas Hartmann
Browse files
Qml Designer - property editor: This patch avoids bindings of undefined objects
This fixes random crashes
parent
c283c05d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp
View file @
418fda61
...
@@ -118,9 +118,9 @@ void PropertyEditor::NodeType::setup(const QmlObjectNode &fxObjectNode, const QS
...
@@ -118,9 +118,9 @@ void PropertyEditor::NodeType::setup(const QmlObjectNode &fxObjectNode, const QS
ctxt
->
setContextProperty
(
"anchorBackend"
,
0
);
ctxt
->
setContextProperty
(
"anchorBackend"
,
0
);
ctxt
->
setContextProperty
(
"backendValues"
,
0
);
ctxt
->
setContextProperty
(
"backendValues"
,
0
);
foreach
(
const
QString
&
propertyName
,
m_backendValuesPropertyMap
.
keys
())
//
foreach (const QString &propertyName, m_backendValuesPropertyMap.keys())
m_backendValuesPropertyMap
.
clear
(
propertyName
);
//
m_backendValuesPropertyMap.clear(propertyName);
qDeleteAll
(
m_backendValuesPropertyMap
.
children
());
//
qDeleteAll(m_backendValuesPropertyMap.children());
if
(
fxObjectNode
.
isValid
())
{
if
(
fxObjectNode
.
isValid
())
{
foreach
(
const
QString
&
propertyName
,
fxObjectNode
.
modelNode
().
metaInfo
().
properties
(
true
).
keys
())
foreach
(
const
QString
&
propertyName
,
fxObjectNode
.
modelNode
().
metaInfo
().
properties
(
true
).
keys
())
...
...
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