diff --git a/minigui.d b/minigui.d index 9388eb8..dd297f8 100644 --- a/minigui.d +++ b/minigui.d @@ -3780,8 +3780,7 @@ class MainWindow : Window { this.menuBar = menuBar; if(toolbarActions.length) { - auto tb = new ToolBar(toolbarActions); - addChild(tb, 0); + auto tb = new ToolBar(toolbarActions, this); } }