]> sigrok.org Git - pulseview.git/blobdiff - pv/mainwindow.cpp
Made the sdi a persisent property of SigSession
[pulseview.git] / pv / mainwindow.cpp
index 3326b9b1af47967d0de0603a4bef3cdb4d4684f1..fc5872875ef6ace5f44af61e3f964168d3a7bd64 100644 (file)
@@ -152,6 +152,7 @@ void MainWindow::setup_ui()
        _action_view_show_cursors = new QAction(this);
        _action_view_show_cursors->setCheckable(true);
        _action_view_show_cursors->setChecked(_view->cursors_shown());
+       _action_view_show_cursors->setShortcut(QKeySequence(Qt::Key_C));
        _action_view_show_cursors->setObjectName(
                QString::fromUtf8("actionViewShowCursors"));
        _action_view_show_cursors->setText(QApplication::translate(
@@ -305,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;