Skip to content
Snippets Groups Projects
Commit 97d6e4df authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.propertyEditor: change caching behaivour

parent 8f23a4ab
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,7 @@
#include <QmlEngine>
#include <QmlMetaType>
#include <QMessageBox>
#include <QApplication>
enum {
debug = false
......@@ -435,21 +436,15 @@ void PropertyEditor::resetView()
if (m_selectedNode.isValid())
qmlSpecificsFile = fileToUrl(locateQmlFile(m_selectedNode.type() + "Specifics.qml"));
QString typeString("invalid");
if (m_selectedNode.isValid()) {
qmlSpecificsFile = fileToUrl(locateQmlFile(m_selectedNode.type() + "Specifics.qml"));
typeString = m_selectedNode.type();
}
m_locked = true;
NodeType *type = m_typeHash.value(typeString);
NodeType *type = m_typeHash.value(qmlFile.toString());
if (!type) {
type = new NodeType(qmlFile, this);
m_stackedWidget->addWidget(type->m_view);
m_typeHash.insert(typeString, type);
m_typeHash.insert(qmlFile.toString(), type);
QmlObjectNode fxObjectNode;
if (m_selectedNode.isValid()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment