mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:24:00 +02:00
Update Application:stopAllScripts to skip finished scripts
This commit is contained in:
parent
3f0d9b7532
commit
f8e4ff8072
1 changed files with 3 additions and 0 deletions
|
@ -3889,6 +3889,9 @@ void Application::stopAllScripts(bool restart) {
|
|||
// stops all current running scripts
|
||||
for (QHash<QString, ScriptEngine*>::const_iterator it = _scriptEnginesHash.constBegin();
|
||||
it != _scriptEnginesHash.constEnd(); it++) {
|
||||
if (it.value()->isFinished()) {
|
||||
continue;
|
||||
}
|
||||
if (restart && it.value()->isUserLoaded()) {
|
||||
connect(it.value(), SIGNAL(finished(const QString&)), SLOT(loadScript(const QString&)));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue