Commit 176500df authored by Ming Rui Zhang's avatar Ming Rui Zhang

recordwidget: delete potential recorded file and stop local recorder in hide event

Change-Id: I9ac1f3f6e5235ad07161654cd3cf1c3fb83edd35
parent 1f8a5172
......@@ -134,6 +134,8 @@ void
RecordWidget::hideEvent(QHideEvent* event)
{
Q_UNUSED(event);
LRCInstance::avModel().stopLocalRecorder(recordedFilePath_.toStdString());
Utils::forceDeleteAsync(recordedFilePath_);
if(!isAudio_) {
LRCInstance::avModel().stopPreview();
previewWidget_->toPaintingBackground(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment