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
82865ac7
Commit
82865ac7
authored
Sep 29, 2010
by
Thomas Hartmann
Browse files
QmlDesigner.model: add sanity check and include fix
Only emit if the view is really attached. Reviewed-by: Marco Bubke
parent
a210978e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/designercore/model/abstractview.cpp
View file @
82865ac7
...
...
@@ -370,7 +370,7 @@ void AbstractView::emitCustomNotification(const QString &identifier, const QList
void
AbstractView
::
emitInstancePropertyChange
(
const
QList
<
QPair
<
ModelNode
,
QString
>
>
&
propertyList
)
{
if
(
model
())
if
(
model
()
&&
nodeInstanceView
()
==
this
)
model
()
->
m_d
->
notifyInstancePropertyChange
(
propertyList
);
}
...
...
src/plugins/qmldesigner/designercore/model/qmltextgenerator.cpp
View file @
82865ac7
...
...
@@ -35,6 +35,7 @@
#include "nodelistproperty.h"
#include "qmltextgenerator.h"
#include "variantproperty.h"
#include <propertymetainfo.h>
#include "model.h"
using
namespace
QmlDesigner
;
...
...
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