Commit 93824b53 authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas

fix display of menubar on macos

parent d04f05d8
......@@ -190,9 +190,6 @@ dtkVisualizationViewer::dtkVisualizationViewer(QWidget *parent) : dtkWidgetsMain
dtkWidgetsParameterMenuBarGenerator menubar_generator(":menu.json", ":parameters.json");
menubar_generator.populate(this->menubar());
this->populate();
this->menubar()->touch();
QHash<QString, dtkCoreParameter *> parameters = menubar_generator.parameters();
......@@ -251,6 +248,10 @@ dtkVisualizationViewer::dtkVisualizationViewer(QWidget *parent) : dtkWidgetsMain
this->setAttribute(Qt::WA_DeleteOnClose);
this->setCentralWidget(widget);
this->setup();
this->populate();
this->menubar()->touch();
widget->stackUnder(this->titlebar());
}
dtkVisualizationViewer::~dtkVisualizationViewer(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment