added scriptEnding callback

This commit is contained in:
Brad Hefta-Gaub 2014-01-17 09:51:14 -08:00
parent c404a36439
commit 18ded1d7db
2 changed files with 3 additions and 0 deletions

View file

@ -225,6 +225,7 @@ void ScriptEngine::run() {
qDebug() << "Uncaught exception at line" << line << ":" << _engine.uncaughtException().toString();
}
}
emit scriptEnding();
cleanMenuItems();
// If we were on a thread, then wait till it's done

View file

@ -57,7 +57,9 @@ public slots:
signals:
void willSendAudioDataCallback();
void willSendVisualDataCallback();
void scriptEnding();
void finished();
protected:
QString _scriptContents;
bool _isFinished;