Commit 292759ba authored by Andreas Traczyk's avatar Andreas Traczyk

photobooth: only stop the preview if previewing

Change-Id: Ic2a6d22d03fdadc64e054ab344ba4c3175b26f0c
parent 42454f30
......@@ -93,9 +93,9 @@ void PhotoboothWidget::startBooth(bool isDeviceChanged)
void PhotoboothWidget::stopBooth()
{
if (!LRCInstance::getActiveCalls().size()) {
if (!LRCInstance::getActiveCalls().size() && takePhotoState_) {
// if no active calls
LRCInstance::avModel().stopPreview();
QtConcurrent::run([this] { LRCInstance::avModel().stopPreview(); });
} else if(hasConnection_){
// if video connection is still on photo booth (now stopBooth will onlt be called once leaving the setting widget)
emit enterCallWidgetFromSettingsWidgetPhotoBooth(
......
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