From 26af683c7eb74b8137b79e4d7b64bb4f02f6794b Mon Sep 17 00:00:00 2001
From: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
Date: Tue, 24 Sep 2019 17:11:41 -0400
Subject: [PATCH] mainwindow: stop preview before closing the main window

Change-Id: Ibbe60290952b9a546541622f709bbc663aa45a47
---
 mainwindow.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mainwindow.cpp b/mainwindow.cpp
index 55ff41e..06152b8 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -316,6 +316,7 @@ void MainWindow::closeEvent(QCloseEvent* event)
         this->hide();
         event->ignore();
     } else {
+        LRCInstance::avModel().stopPreview();
         settings.setValue(SettingsKey::geometry, saveGeometry());
         settings.setValue(SettingsKey::windowState, saveState());
         this->disconnect(screenChangedConnection_);
-- 
GitLab