X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fmainwindow.cpp;h=f72d1b7056041bd5cb34c563f68c7aed3523917e;hp=0b2805b18e44a1ee0908b2715476d62466faf58e;hb=945745012eb57cefa1ef457daf48cfffa99f9ec2;hpb=0fc664a99e0d9a444e593123d1db7a47b1657366 diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 0b2805b..f72d1b7 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -39,7 +39,7 @@ #include "mainwindow.h" #include "devicemanager.h" -#include "devinst.h" +#include "device/devinst.h" #include "dialogs/about.h" #include "dialogs/connect.h" #include "dialogs/storeprogress.h" @@ -284,11 +284,13 @@ void MainWindow::session_error( Q_ARG(QString, info_text)); } -void MainWindow::update_device_list(shared_ptr selected_device) +void MainWindow::update_device_list( + shared_ptr selected_device) { assert(_sampling_bar); - const list< shared_ptr > &devices = _device_manager.devices(); + const list< shared_ptr > &devices = + _device_manager.devices(); _sampling_bar->set_device_list(devices); if (!selected_device && !devices.empty()) { @@ -296,7 +298,7 @@ void MainWindow::update_device_list(shared_ptr selected_device) selected_device = devices.front(); // Try and find the demo device and select that by default - BOOST_FOREACH (shared_ptr dev_inst, devices) + BOOST_FOREACH (shared_ptr dev_inst, devices) if (strcmp(dev_inst->dev_inst()->driver->name, "demo") == 0) { selected_device = dev_inst; @@ -368,7 +370,7 @@ void MainWindow::on_actionConnect_triggered() // If the user selected a device, select it in the device list. Select the // current device otherwise. - shared_ptr dev_inst = dlg.exec() ? + shared_ptr dev_inst = dlg.exec() ? dlg.get_selected_device() : _session.get_device(); update_device_list(dev_inst);