summaryrefslogtreecommitdiffstats
path: root/src/scripttools/debugging/qscriptdebuggerbackend.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-09-09 05:14:50 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-09-09 05:14:50 (GMT)
commitd03ed1d1ff45ff484f35ace9d90f6c84dd73aa21 (patch)
tree954527301ce27777e5ec26f0b9c9abaee07e5481 /src/scripttools/debugging/qscriptdebuggerbackend.cpp
parent6878a0b7c507d21366cacee0a09bafeb81726d82 (diff)
parenta57af1d6856ffa3a50eb1e0cdd1653b7b4ebdb41 (diff)
downloadQt-d03ed1d1ff45ff484f35ace9d90f6c84dd73aa21.zip
Qt-d03ed1d1ff45ff484f35ace9d90f6c84dd73aa21.tar.gz
Qt-d03ed1d1ff45ff484f35ace9d90f6c84dd73aa21.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'src/scripttools/debugging/qscriptdebuggerbackend.cpp')
-rw-r--r--src/scripttools/debugging/qscriptdebuggerbackend.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/scripttools/debugging/qscriptdebuggerbackend.cpp b/src/scripttools/debugging/qscriptdebuggerbackend.cpp
index 2efff04..feaea63 100644
--- a/src/scripttools/debugging/qscriptdebuggerbackend.cpp
+++ b/src/scripttools/debugging/qscriptdebuggerbackend.cpp
@@ -805,13 +805,7 @@ int QScriptDebuggerBackend::contextCount() const
{
if (!engine())
return 0;
- int count = 0;
- QScriptContext *ctx = engine()->currentContext();
- while (ctx) {
- ++count;
- ctx = ctx->parentContext();
- }
- return count;
+ return contextIds().count();
}
/*!