X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fmainwindow.cpp;h=4a98e4081b68e9999a2f07b3f17d78fdd9276951;hp=f777bfd6ca932da01450ef000c2e3aad0bd1a7cf;hb=e0ba4f6fb263b4cc1dae96df2a0ff1e1ef8984ce;hpb=fd22c71c1a9cc470b53c71c0ee131a4b2d645f80 diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index f777bfd..4a98e40 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -44,6 +44,7 @@ #include "dialogs/about.hpp" #include "toolbars/mainbar.hpp" #include "view/view.hpp" +#include "views/trace/standardbar.hpp" #include #include @@ -204,12 +205,17 @@ shared_ptr MainWindow::add_view(const QString &title, shared_ptr main_bar = session.main_bar(); if (!main_bar) { - main_bar = make_shared(session, *this); + /* Initial view, create the main bar */ + main_bar = make_shared(session, this, v.get()); dock_main->addToolBar(main_bar.get()); session.set_main_bar(main_bar); connect(main_bar.get(), SIGNAL(new_view(Session*)), this, SLOT(on_new_view(Session*))); + } else { + /* Additional view, create a standard bar */ + dock_main->addToolBar( + new pv::views::trace::StandardBar(session, this, v.get())); } main_bar->action_view_show_cursors()->setChecked(v->cursors_shown());