]> sigrok.org Git - pulseview.git/blobdiff - pv/mainwindow.cpp
Removed a redundant call to SigSession::set_device
[pulseview.git] / pv / mainwindow.cpp
index 9995e50ac2ef42650ba4d904a3d7b70c287336ff..829c95e994e2691db500fdbdfa5706be3352921e 100644 (file)
@@ -311,8 +311,9 @@ void MainWindow::update_device_list(
        }
 
        if (selected_device) {
+               // Setting the selected device in the sampling bar, generates
+               // an event which updates the selected device in the SigSession.
                _sampling_bar->set_selected_device(selected_device);
-               _session.set_device(selected_device);
        }
 }