mirror of
https://github.com/lubosz/overte.git
synced 2025-04-26 23:35:33 +02:00
Merge pull request #3092 from ctrlaltdavid/19789
Code Review for Job #19789
This commit is contained in:
commit
9eba4b01f0
1 changed files with 3 additions and 2 deletions
|
@ -3650,8 +3650,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