summaryrefslogtreecommitdiffstats
path: root/src/script/api/qscriptengineagent.cpp
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-07-23 23:42:32 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-07-23 23:42:32 (GMT)
commitc00b6a953d08fe9b13fa61f1e4acdb937885aa03 (patch)
treee5b10eedb304e04a26206ea2247cd52c87ef11b4 /src/script/api/qscriptengineagent.cpp
parentb0e73713e0142ac1045b4c91c7fe55e8e965b7c2 (diff)
parent1b0bc13c14083d6146517ba1d8a63a6a503733b9 (diff)
downloadQt-c00b6a953d08fe9b13fa61f1e4acdb937885aa03.zip
Qt-c00b6a953d08fe9b13fa61f1e4acdb937885aa03.tar.gz
Qt-c00b6a953d08fe9b13fa61f1e4acdb937885aa03.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2: Stabilize tst_qlineedit.cpp QScriptEngineAgent: ensure that the top of the backtrace is correct in exceptionThrow Fix QLineEdit's Highlight color when inactive.
Diffstat (limited to 'src/script/api/qscriptengineagent.cpp')
-rw-r--r--src/script/api/qscriptengineagent.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/api/qscriptengineagent.cpp b/src/script/api/qscriptengineagent.cpp
index 28905e8..0b5828a 100644
--- a/src/script/api/qscriptengineagent.cpp
+++ b/src/script/api/qscriptengineagent.cpp
@@ -134,9 +134,12 @@ void QScriptEngineAgentPrivate::returnEvent(const JSC::DebuggerCallFrame& frame,
void QScriptEngineAgentPrivate::exceptionThrow(const JSC::DebuggerCallFrame& frame, intptr_t sourceID, bool hasHandler)
{
JSC::CallFrame *oldFrame = engine->currentFrame;
+ int oldAgentLineNumber = engine->agentLineNumber;
engine->currentFrame = frame.callFrame();
QScriptValue value(engine->scriptValueFromJSCValue(frame.exception()));
+ engine->agentLineNumber = value.property(QLatin1String("lineNumber")).toInt32();
q_ptr->exceptionThrow(sourceID, value, hasHandler);
+ engine->agentLineNumber = oldAgentLineNumber;
engine->currentFrame = oldFrame;
engine->setCurrentException(value);
};