mirror of
https://github.com/lubosz/overte.git
synced 2025-04-17 14:46:15 +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() {
|
||||
if (!_recorder->isRecording()) {
|
||||
qCWarning(scriptengine) << "Recorder is not running";
|
||||
return;
|
||||
}
|
||||
|
||||
_recorder->stop();
|
||||
_lastClip = _recorder->getClip();
|
||||
_lastClip->seek(0);
|
||||
|
|
Loading…
Reference in a new issue