X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fmainwindow.cpp;h=fc5872875ef6ace5f44af61e3f964168d3a7bd64;hp=150c2fccfa348d9ba9aac48f73016abe2b4c5d96;hb=d64d159628c795e1413127aafd83ec1bc9ace91c;hpb=4166ed6c6648d1ed82cc48787aa717772a1e103f;ds=sidebyside diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 150c2fcc..fc587287 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -306,9 +306,8 @@ void MainWindow::run_stop() { switch(_session.get_capture_state()) { case SigSession::Stopped: - _session.start_capture( - _sampling_bar->get_selected_device(), - _sampling_bar->get_record_length(), + _session.set_device(_sampling_bar->get_selected_device()); + _session.start_capture(_sampling_bar->get_record_length(), boost::bind(&MainWindow::session_error, this, QString("Capture failed"), _1)); break;