Skip to content
Snippets Groups Projects
Commit f72f4f2a authored by Marco Matthies's avatar Marco Matthies
Browse files

Fix crash when opening Configuration window from the menubar

parent 2ca774bd
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ import QtQuick.Layouts
import QtQuick.Dialogs
import org.julialang
ApplicationWindow {
Window {
id: configWindow
title: "Configure simulation"
width: 700
......@@ -222,7 +222,7 @@ ApplicationWindow {
// insectmodel
}
footer: ToolBar {
ToolBar {
RowLayout {
anchors.right: parent.right
layoutDirection: Qt.RightToLeft
......
......@@ -17,6 +17,10 @@ ApplicationWindow {
visibility: "Maximized"
visible: true
Loader {
id: loader
}
menuBar: MenuBar {
Menu {
title: "&Simulation"
......@@ -26,7 +30,8 @@ ApplicationWindow {
}
Action {
text: "&Configure Simulation"
onTriggered: { Julia.configwindow() }
//onTriggered: { Julia.configwindow() }
onTriggered: loader.source = "config.qml"
}
Action {
text: "&Load Saved State"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment