X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fmainwindow.cpp;h=f777bfd6ca932da01450ef000c2e3aad0bd1a7cf;hp=1738f9b16cfea0adfcfa65d6018c0bbffab68bf4;hb=fd22c71c1a9cc470b53c71c0ee131a4b2d645f80;hpb=c32bf63a93d8135b5d71c70270dbf45f9b4a8267 diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 1738f9b1..f777bfd6 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -87,7 +87,7 @@ MainWindow::MainWindow(DeviceManager &device_manager, if (!open_file_name.empty()) { shared_ptr session = add_session(); - session->main_bar()->load_init_file(open_file_name, open_file_format); + session->load_init_file(open_file_name, open_file_format); } // Add empty default session if there aren't any sessions @@ -107,8 +107,7 @@ MainWindow::MainWindow(DeviceManager &device_manager, } // ...and if there isn't any, just use demo then - session->main_bar()->select_device(other_device ? - other_device : demo_device); + session->select_device(other_device ? other_device : demo_device); } }