aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/language/moduleloader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/corelib/language/moduleloader.cpp')
-rw-r--r--src/lib/corelib/language/moduleloader.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/corelib/language/moduleloader.cpp b/src/lib/corelib/language/moduleloader.cpp
index babd727be..233fa7074 100644
--- a/src/lib/corelib/language/moduleloader.cpp
+++ b/src/lib/corelib/language/moduleloader.cpp
@@ -2188,18 +2188,18 @@ void ModuleLoader::resolveProbe(ProductContext *productContext, Item *parent, It
if (!resolvedProbe)
properties.insert(b.first, newValue);
}
- if (!resolvedProbe) {
- resolvedProbe = Probe::create(probe->location(), condition,
- configureScript->sourceCode().toString(), properties, initialProperties);
- m_currentProbes[probe->location()] << resolvedProbe;
- }
- productContext->info.probes << resolvedProbe;
m_engine->currentContext()->popScope();
m_engine->currentContext()->popScope();
m_engine->currentContext()->popScope();
m_engine->currentContext()->popScope();
if (evalError.hasError())
throw evalError;
+ if (!resolvedProbe) {
+ resolvedProbe = Probe::create(probe->location(), condition,
+ configureScript->sourceCode().toString(), properties, initialProperties);
+ m_currentProbes[probe->location()] << resolvedProbe;
+ }
+ productContext->info.probes << resolvedProbe;
}
void ModuleLoader::checkCancelation() const