diff options
author | Christian Kamm <christian.d.kamm@nokia.com> | 2010-08-05 09:23:22 +0200 |
---|---|---|
committer | Christian Kamm <christian.d.kamm@nokia.com> | 2010-08-05 09:23:22 +0200 |
commit | 4898f39bc2dac8af9092992361b77e90fadb4acc (patch) | |
tree | 0da742e5dc9fe7cec938063aafd615abb291b6e6 | |
parent | 9e3db930b9a390dd4c5b4d35e4c04cc6ea6c7c1c (diff) |
Fix running JS scripts not suspending themselves at regular intervals.
This allowed long-running scripts to freeze the GUI and meant queued
signals accumulated during script execution would not be executed in a
timely manner.
-rw-r--r-- | library/scriptadapter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/scriptadapter.cpp b/library/scriptadapter.cpp index 7885277..0086b12 100644 --- a/library/scriptadapter.cpp +++ b/library/scriptadapter.cpp @@ -197,7 +197,7 @@ void Script::run() mStopTimer = new QTimer; mStopTimer->setInterval(10); mStopTimer->setSingleShot(true); - connect(mStopTimer, SIGNAL(timeout()), this, SLOT(suspend())); + connect(mStopTimer, SIGNAL(timeout()), this, SLOT(suspend()), Qt::DirectConnection); mMutex.lock(); suspend(); |