X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fmainwindow.cpp;h=0dd9a09f194ea3cb7da233d90008798be845043f;hb=59331ddaef8cc63ab8b60e6f0f9d8d76aed6e2c5;hp=81b49057adfa25f72a44db14eaa7ce3c7f54700b;hpb=4523c5096aa9f719661805a7945f125495b55953;p=pulseview.git diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 81b4905..0dd9a09 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -326,7 +326,7 @@ void MainWindow::setup_ui() setMenuBar(menu_bar); QMetaObject::connectSlotsByName(this); - // Setup the sampling bar + // Setup the toolbar main_bar_ = new toolbars::MainBar(session_, *this); // Populate the device list and select the initially selected device @@ -463,7 +463,7 @@ void MainWindow::load_file(QString file_name) const QString infoMessage; try { - session_.set_file(file_name.toStdString()); + session_.set_session_file(file_name.toStdString()); } catch(Error e) { show_session_error(tr("Failed to load ") + file_name, e.what()); session_.set_default_device();