Showing the changes to libraries/script-engine/src/RecordingScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -195,6 +195,11 @@ void RecordingScriptingInterface::startRecording() { · 194 unmodified lines | |||
| 195 | } | 195 | } |
| 196 | 196 | ||
| 197 | void RecordingScriptingInterface::stopRecording() { | 197 | void RecordingScriptingInterface::stopRecording() { |
| 198 | if (!_recorder->isRecording()) { | ||
| 199 | qCWarning(scriptengine) << "Recorder is not running"; | ||
| 200 | return; | ||
| 201 | } | ||
| 202 | |||
| 198 | _recorder->stop(); | 203 | _recorder->stop(); |
| 199 | _lastClip = _recorder->getClip(); | 204 | _lastClip = _recorder->getClip(); |
| 200 | _lastClip->seek(0); | 205 | _lastClip->seek(0); |