From: Joel Holdsworth Date: Wed, 1 May 2013 21:33:31 +0000 (+0100) Subject: Stop capture before connecting to a device X-Git-Tag: pulseview-0.1.0~6 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b99cfc426de26a959f6b3cf1cfe2500469ce152b;p=pulseview.git Stop capture before connecting to a device --- diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index dcbaf181..97abbf8e 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