mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +02:00
fix method name to match coding standard
This commit is contained in:
parent
4e862941cb
commit
9ad488ba7b
2 changed files with 3 additions and 3 deletions
|
@ -147,7 +147,7 @@ public:
|
|||
bool isFinished() const { return _isFinished; } // used by Application and ScriptWidget
|
||||
bool isRunning() const { return _isRunning; } // used by ScriptWidget
|
||||
bool isStopping() const { return _isStopping; }
|
||||
void flagAsStopping() { _isStopping = true; }
|
||||
void setIsStopping() { _isStopping = true; }
|
||||
|
||||
bool isDebuggable() const { return _debuggable; }
|
||||
|
||||
|
|
|
@ -351,7 +351,7 @@ void ScriptEngines::stopAllScripts(bool restart) {
|
|||
reloadScript(scriptName);
|
||||
});
|
||||
}
|
||||
it.value()->flagAsStopping();
|
||||
it.value()->setIsStopping();
|
||||
QMetaObject::invokeMethod(it.value(), "stop");
|
||||
//it.value()->stop();
|
||||
qCDebug(scriptengine) << "stopping script..." << it.key();
|
||||
|
@ -370,7 +370,7 @@ bool ScriptEngines::stopScript(const QString& rawScriptURL, bool restart) {
|
|||
if (_scriptEnginesHash.contains(scriptURL)) {
|
||||
ScriptEngine* scriptEngine = _scriptEnginesHash[scriptURL];
|
||||
if (restart) {
|
||||
scriptEngine->flagAsStopping();
|
||||
scriptEngine->setIsStopping();
|
||||
auto scriptCache = DependencyManager::get<ScriptCache>();
|
||||
scriptCache->deleteScript(scriptURL);
|
||||
connect(scriptEngine, &ScriptEngine::finished, this, [this](QString scriptName, ScriptEngine* engine) {
|
||||
|
|
Loading…
Reference in a new issue