mirror of
https://github.com/overte-org/overte.git
synced 2025-07-22 22:34:12 +02:00
Fix crash in Recorder.stopRecording() when no recording is being made
This commit is contained in:
parent
a1b6b0af35
commit
e708cb98bb
1 changed files with 5 additions and 0 deletions
|
@ -195,6 +195,11 @@ void RecordingScriptingInterface::startRecording() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void RecordingScriptingInterface::stopRecording() {
|
void RecordingScriptingInterface::stopRecording() {
|
||||||
|
if (!_recorder->isRecording()) {
|
||||||
|
qCWarning(scriptengine) << "Recorder is not running";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
_recorder->stop();
|
_recorder->stop();
|
||||||
_lastClip = _recorder->getClip();
|
_lastClip = _recorder->getClip();
|
||||||
_lastClip->seek(0);
|
_lastClip->seek(0);
|
||||||
|
|
Loading…
Reference in a new issue