From b99cfc426de26a959f6b3cf1cfe2500469ce152b Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Wed, 1 May 2013 22:33:31 +0100 Subject: [PATCH] Stop capture before connecting to a device --- pv/mainwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index dcbaf18..97abbf8 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -278,6 +278,9 @@ void MainWindow::on_actionOpen_triggered() void MainWindow::on_actionConnect_triggered() { + // Stop any currently running capture session + _session.stop_capture(); + dialogs::Connect dlg(this, _device_manager); // If the user selected a device, select it in the device list. Select the -- 2.30.2