X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fmainwindow.cpp;h=7320bf1aa740a488fe014d6e10aac2ba66621aab;hb=84b1b7d28acc52214940ac94a84943cf9e9685fa;hp=dcbaf1812ab268765e626d69f5c280042c6ff65e;hpb=dc0867ff7ec693953afb62f9512ad7dd3339a2b2;p=pulseview.git diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index dcbaf18..7320bf1 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -19,7 +19,7 @@ */ #ifdef ENABLE_SIGROKDECODE -#include +#include #endif #include @@ -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