Showing the changes to interface/src/Application.cpp (1 of 37 files). Show all
Unified · Split
| @@ -3656,8 +3656,9 @@ void Application::stopAllScripts(bool restart) { · 3655 unmodified lines | ||
| 3656 | 3656 | } |
| 3657 | 3657 | |
| 3658 | 3658 | void Application::stopScript(const QString &scriptName) { |
| 3659 | − if (_scriptEnginesHash.contains(scriptName)) { | |
| 3660 | − _scriptEnginesHash.value(scriptName)->stop(); | |
| 3659 | + const QString& scriptURLString = QUrl(scriptName).toString(); | |
| 3660 | + if (_scriptEnginesHash.contains(scriptURLString)) { | |
| 3661 | + _scriptEnginesHash.value(scriptURLString)->stop(); | |
| 3661 | 3662 | qDebug() << "stopping script..." << scriptName; |
| 3662 | 3663 | } |
| 3663 | 3664 | } |