mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Fix stopping scripts in the script editor
This commit is contained in:
parent
6d77d438ab
commit
9fb64386aa
1 changed files with 3 additions and 2 deletions
|
@ -3643,8 +3643,9 @@ void Application::stopAllScripts(bool restart) {
|
|||
}
|
||||
|
||||
void Application::stopScript(const QString &scriptName) {
|
||||
if (_scriptEnginesHash.contains(scriptName)) {
|
||||
_scriptEnginesHash.value(scriptName)->stop();
|
||||
const QString& scriptURLString = QUrl(scriptName).toString();
|
||||
if (_scriptEnginesHash.contains(scriptURLString)) {
|
||||
_scriptEnginesHash.value(scriptURLString)->stop();
|
||||
qDebug() << "stopping script..." << scriptName;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue