Code Review for Job #19789
Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -3650,8 +3650,9 @@ void Application::stopAllScripts(bool restart) { · 3649 unmodified lines | |||
| 3650 | } | 3650 | } |
| 3651 | 3651 | ||
| 3652 | void Application::stopScript(const QString &scriptName) { | 3652 | void Application::stopScript(const QString &scriptName) { |
| 3653 | if (_scriptEnginesHash.contains(scriptName)) { | 3653 | const QString& scriptURLString = QUrl(scriptName).toString(); |
| 3654 | _scriptEnginesHash.value(scriptName)->stop(); | 3654 | if (_scriptEnginesHash.contains(scriptURLString)) { |
| 3655 | _scriptEnginesHash.value(scriptURLString)->stop(); | ||
| 3655 | qDebug() << "stopping script..." << scriptName; | 3656 | qDebug() << "stopping script..." << scriptName; |
| 3656 | } | 3657 | } |
| 3657 | } | 3658 | } |