QmlObserver: Apply changes to file also if not in Debug mode

Also apply changes to the .qml file in e.g. the Design mode to
the running application.
This commit is contained in:
Kai Koehne
2010-11-24 12:34:32 +01:00
parent 03355c49d8
commit 5c67e10253

View File

@@ -517,12 +517,6 @@ void QmlJSLiveTextPreview::documentChanged(QmlJS::Document::Ptr doc)
if (doc->fileName() != m_previousDoc->fileName() || m_clientProxy.isNull()) if (doc->fileName() != m_previousDoc->fileName() || m_clientProxy.isNull())
return; return;
Core::ICore *core = Core::ICore::instance();
const int dbgcontext = core->uniqueIDManager()->uniqueIdentifier(Debugger::Constants::C_DEBUGMODE);
if (!core->hasContext(dbgcontext))
return;
bool experimentalWarningShown = false; bool experimentalWarningShown = false;
if (m_applyChangesToQmlObserver) { if (m_applyChangesToQmlObserver) {